Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

build: run all tests and typechecks in CI (#3661)

Bogdan Chadkina58f2eff0477
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b678007adb..3a07219dfd 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -47,4 +47,5 @@ jobs:
- run: pnpm -r build
- run: pnpm -r size-test
- - run: pnpm -r checks
+ - run: pnpm -r test
+ - run: pnpm -r typecheck
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 255db7b7f1..b84c5e6390 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -13,7 +13,6 @@
"dev": "remix vite:dev",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
"ci:migrate": "migrations migrate",
"middleware:link": "pnpx vercel link",
"middleware:env": "pnpx vercel env pull --environment=preview ./.env.preview",
diff --git a/fixtures/webstudio-cloudflare-template/functions/[[path]].ts b/fixtures/webstudio-cloudflare-template/functions/[[path]].ts
index 9dc87e1a51..943b55594f 100644
--- a/fixtures/webstudio-cloudflare-template/functions/[[path]].ts
+++ b/fixtures/webstudio-cloudflare-template/functions/[[path]].ts
@@ -4,4 +4,6 @@ import { createPagesFunctionHandler } from "@remix-run/cloudflare-pages";
// @ts-ignore - the server build file is generated by `remix vite:build`
import * as build from "../build/server";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore - the server build file is generated by `remix vite:build`
export const onRequest = createPagesFunctionHandler({ build });
diff --git a/fixtures/webstudio-custom-template/package.json b/fixtures/webstudio-custom-template/package.json
index 5b924f6f56..fbc1daec4e 100644
--- a/fixtures/webstudio-custom-template/package.json
+++ b/fixtures/webstudio-custom-template/package.json
@@ -4,7 +4,6 @@
"build": "remix vite:build",
"dev": "remix vite:dev",
"typecheck": "tsc",
- "checks": "pnpm typecheck",
"size-test": "rm -rf ./public && remix build && size-limit",
"cli": "NODE_OPTIONS='--conditions=webstudio --import=tsx' webstudio",
"fixtures:link": "pnpm cli link --link \"https://main.development.webstudio.is/builder/0d856812-61d8-4014-a20a-82e01c0eb8ee?authToken=d225fafb-4f20-4340-9359-c21df7c49a3f\"",
diff --git a/package.json b/package.json
index 83cec154e9..773cdbbe1c 100644
--- a/package.json
+++ b/package.json
@@ -6,9 +6,9 @@
"scripts": {
"build": "pnpm -r --filter='!./fixtures/*' build",
"dts": "pnpm -r dts",
- "checks": "pnpm -r checks",
"dev": "pnpm --filter='@webstudio-is/builder' --filter='@webstudio-is/prisma-client' --parallel --recursive dev",
"lint": "eslint . --ext .ts,.tsx --max-warnings 0",
+ "checks": "pnpm -r test && pnpm -r typecheck && pnpm lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"storybook:dev": "storybook dev -p 6006",
"storybook:build": "storybook build",
diff --git a/packages/ai/package.json b/packages/ai/package.json
index b24e027e41..01dd64a9a6 100644
--- a/packages/ai/package.json
+++ b/packages/ai/package.json
@@ -9,7 +9,6 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
- "checks": "pnpm typecheck && pnpm test",
"build:prompts": "tsx ./bin/build-prompts.ts \"./src/chains/**/*.prompt.md\""
},
"devDependencies": {
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.json
index cf4a5b32aa..f07b41311c 100644
--- a/packages/asset-uploader/package.json
+++ b/packages/asset-uploader/package.json
@@ -7,8 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"@aws-crypto/sha256-js": "^5.2.0",
diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.json
index c2c8b3f272..dc94d48f9a 100644
--- a/packages/authorization-token/package.json
+++ b/packages/authorization-token/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
diff --git a/packages/cli/package.json b/packages/cli/package.json
index c3682e099e..c2da0f51cb 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -23,9 +23,7 @@
],
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
"build": "rm -rf lib && esbuild src/cli.ts --outdir=lib --bundle --format=esm --packages=external",
- "dev": "esbuild src/cli.ts --watch --bundle --format=esm --packages=external --outdir=./lib",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"license": "AGPL-3.0-or-later",
diff --git a/packages/cli/templates/cloudflare/functions/[[path]].ts b/packages/cli/templates/cloudflare/functions/[[path]].ts
index 9dc87e1a51..943b55594f 100644
--- a/packages/cli/templates/cloudflare/functions/[[path]].ts
+++ b/packages/cli/templates/cloudflare/functions/[[path]].ts
@@ -4,4 +4,6 @@ import { createPagesFunctionHandler } from "@remix-run/cloudflare-pages";
// @ts-ignore - the server build file is generated by `remix vite:build`
import * as build from "../build/server";
+// eslint-disable-next-line @typescript-eslint/ban-ts-comment
+// @ts-ignore - the server build file is generated by `remix vite:build`
export const onRequest = createPagesFunctionHandler({ build });
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index cf837a7d07..6d059a1e23 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -7,7 +7,6 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
"build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/\" \"../css-engine/src/__generated__/\"",
"build:descriptions": "tsx ./bin/property-value-descriptions.ts",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json
index fab0e95097..cc22bf0a5b 100644
--- a/packages/css-engine/package.json
+++ b/packages/css-engine/package.json
@@ -7,8 +7,6 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json
index 6591006915..a27a712fc4 100644
--- a/packages/dashboard/package.json
+++ b/packages/dashboard/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index 6d7a2ed272..772bda23ad 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -8,8 +8,7 @@
"scripts": {
"build-figma-tokens": "tsx ./bin/transform-figma-tokens.ts",
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
diff --git a/packages/domain/package.json b/packages/domain/package.json
index 6e95e3f3ed..13693652ec 100644
--- a/packages/domain/package.json
+++ b/packages/domain/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
diff --git a/packages/error-utils/package.json b/packages/error-utils/package.json
index 2295c40844..747058f6e8 100644
--- a/packages/error-utils/package.json
+++ b/packages/error-utils/package.json
@@ -7,8 +7,6 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.json
index 56796671be..fb7b4c6924 100644
--- a/packages/feature-flags/package.json
+++ b/packages/feature-flags/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {},
"devDependencies": {
diff --git a/packages/fonts/package.json b/packages/fonts/package.json
index 72f0078289..df54e09c63 100644
--- a/packages/fonts/package.json
+++ b/packages/fonts/package.json
@@ -8,8 +8,6 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
diff --git a/packages/form-handlers/package.json b/packages/form-handlers/package.json
index 95613e112a..b82f4cb774 100644
--- a/packages/form-handlers/package.json
+++ b/packages/form-handlers/package.json
@@ -7,8 +7,6 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.json
index 7c6edbd8e7..61e7ddc4ca 100644
--- a/packages/generate-arg-types/package.json
+++ b/packages/generate-arg-types/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/html-data": "workspace:*",
diff --git a/packages/html-data/package.json b/packages/html-data/package.json
index e984f732ae..eef2f97176 100644
--- a/packages/html-data/package.json
+++ b/packages/html-data/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*"
diff --git a/packages/http-client/jest.config.js b/packages/http-client/jest.config.js
deleted file mode 100644
index e7fc137533..0000000000
--- a/packages/http-client/jest.config.js
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "@webstudio-is/jest-config";
diff --git a/packages/http-client/package.json b/packages/http-client/package.json
index a0c61a8637..35b51edd25 100644
--- a/packages/http-client/package.json
+++ b/packages/http-client/package.json
@@ -6,19 +6,14 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@webstudio-is/sdk": "workspace:*"
},
"devDependencies": {
- "@jest/globals": "^29.7.0",
- "@webstudio-is/jest-config": "workspace:*",
"@webstudio-is/tsconfig": "workspace:*",
"typescript": "5.5.2"
},
@@ -28,8 +23,7 @@
"import": "./lib/index.js"
},
"files": [
- "lib/*",
- "!*.{test,stories}.*"
+ "lib/*"
],
"license": "AGPL-3.0-or-later",
"private": false,
diff --git a/packages/http-client/src/index.test.ts b/packages/http-client/src/index.test.ts
deleted file mode 100644
index 6a97e7f882..0000000000
--- a/packages/http-client/src/index.test.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { describe, test, expect } from "@jest/globals";
-import { loadProjectDataById } from "./index";
-
-const existingProjectId = "675e8af3-48fa-4b18-9ebf-fd2b128865e2";
-const notPublishedProjectId = "7ec397c6-b3d0-4967-9073-9d83623fcf8e";
-const onlyHomeProjectId = "36d6c16f-04a0-45d4-ab1d-aa0ab61eb5b6";
-const morePagesProjectId = existingProjectId;
-
-const host = "http://localhost:3000";
-
-describe("getProjectDetails", () => {
- test("include pages", async () => {
- const response = await loadProjectDataById({
- origin: host,
- projectId: morePagesProjectId,
- });
-
- if (typeof response === "object") {
- return expect(response.pages.length).toBeTruthy();
- }
- throw new Error("Unexpected response");
- });
- test("does not include pages", async () => {
- const response = await loadProjectDataById({
- origin: host,
- projectId: onlyHomeProjectId,
- });
- if (typeof response === "object") {
- return expect(response.pages.length === 1).toBeTruthy();
- }
- throw new Error("Unexpected response");
- });
- test("loads existing project", async () => {
- const response = await loadProjectDataById({
- origin: host,
- projectId: existingProjectId,
- });
- expect(response).toBeTruthy();
- });
- test("loads not published project", async () => {
- const response = await loadProjectDataById({
- origin: host,
- projectId: notPublishedProjectId,
- });
- if (response instanceof Error) {
- throw response;
- }
- if (typeof response === "string") {
- return expect(response).toBe(
- `Project ${notPublishedProjectId} not found or not published yet. Please contact us to get help.`
- );
- }
- throw new Error("Unexpected response");
- });
-});
diff --git a/packages/icons/package.json b/packages/icons/package.json
index 2b826b3998..1a31c9259a 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -6,12 +6,10 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts src/__generated__/svg.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --declarationDir lib/types",
"generate": "rm -fr src/__generated__ && tsx generate.ts && prettier --write src/__generated__",
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"devDependencies": {
"@svgo/jsx": "^0.4.2",
diff --git a/packages/image/package.json b/packages/image/package.json
index 71255c1a52..018dbada8c 100644
--- a/packages/image/package.json
+++ b/packages/image/package.json
@@ -8,8 +8,6 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
diff --git a/packages/jsx-utils/package.json b/packages/jsx-utils/package.json
index 8b1c30ddc3..904605f6bc 100644
--- a/packages/jsx-utils/package.json
+++ b/packages/jsx-utils/package.json
@@ -8,8 +8,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index b49a43885d..9541815881 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -7,7 +7,6 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
"dev": "pnpm build",
"build": "prisma format && pnpm generate && esbuild src/prisma.ts --outdir=lib --format=cjs && cp src/cjs/package.json lib && cp -r src/__generated__ lib/__generated__ && pnpm dts",
"generate": "PRISMA_BINARY_TARGET=${PRISMA_BINARY_TARGET:-'[\"native\"]'} prisma generate",
diff --git a/packages/project-build/package.json b/packages/project-build/package.json
index 2f5b960706..5299635faa 100644
--- a/packages/project-build/package.json
+++ b/packages/project-build/package.json
@@ -18,8 +18,7 @@
"sideEffects": false,
"scripts": {
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
diff --git a/packages/project/package.json b/packages/project/package.json
index b5753fdfe9..eac64d96e3 100644
--- a/packages/project/package.json
+++ b/packages/project/package.json
@@ -6,8 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"dependencies": {
"@trpc/server": "^10.38.1",
diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json
index 85b28bfb35..de5e83ef2f 100644
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@ -6,12 +6,10 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts ./src/css/normalize.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json",
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
- "checks": "pnpm typecheck && pnpm test"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
diff --git a/packages/sdk-cli/package.json b/packages/sdk-cli/package.json
index 6674f5b495..9b9e7f6b79 100644
--- a/packages/sdk-cli/package.json
+++ b/packages/sdk-cli/package.json
@@ -13,8 +13,7 @@
"!*.{test,stories}.*"
],
"scripts": {
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"license": "AGPL-3.0-or-later",
"dependencies": {
diff --git a/packages/sdk-components-react-radix/package.json b/packages/sdk-components-react-radix/package.json
index c97e0c04c6..5405069edb 100644
--- a/packages/sdk-components-react-radix/package.json
+++ b/packages/sdk-components-react-radix/package.json
@@ -35,14 +35,12 @@
}
},
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts src/hooks.ts --outdir=lib --bundle --format=esm --packages=external",
"build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",
"build:tailwind": "tsx scripts/generate-tailwind-theme.ts && prettier --write src/theme/__generated__",
"build:stories": "webstudio-sdk generate-stories && prettier --write \"src/__generated__/*.stories.tsx\"",
"dts": "tsc --project tsconfig.dts.json",
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
diff --git a/packages/sdk-components-react-remix/package.json b/packages/sdk-components-react-remix/package.json
index 6534a1b5a3..88ad19bce3 100644
--- a/packages/sdk-components-react-remix/package.json
+++ b/packages/sdk-components-react-remix/package.json
@@ -30,12 +30,10 @@
}
},
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts --outdir=lib --bundle --format=esm --packages=external",
"build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.ts' && prettier --write \"**/*.props.ts\"",
"dts": "tsc --project tsconfig.dts.json",
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"peerDependencies": {
"@remix-run/react": "^2.9.2",
diff --git a/packages/sdk-components-react/package.json b/packages/sdk-components-react/package.json
index 5f8969e295..251494a3fa 100644
--- a/packages/sdk-components-react/package.json
+++ b/packages/sdk-components-react/package.json
@@ -35,13 +35,11 @@
}
},
"scripts": {
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/components.ts src/metas.ts src/props.ts --outdir=lib --bundle --format=esm --packages=external",
"build:args": "NODE_OPTIONS=--conditions=webstudio generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.ts' && prettier --write \"**/*.props.ts\"",
"dts": "tsc --project tsconfig.dts.json",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "typecheck": "tsc",
- "checks": "pnpm typecheck"
+ "typecheck": "tsc"
},
"peerDependencies": {
"react": "18.3.0-canary-14898b6a9-20240318",
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index 64fbc5069a..5f3e06bdc2 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -24,8 +24,6 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib --watch",
"build": "rm -rf lib && esbuild src/index.ts --outdir=lib --bundle --format=esm --packages=external",
"dts": "tsc --project tsconfig.dts.json"
},
diff --git a/packages/trpc-interface/package.json b/packages/trpc-interface/package.json
index 8defd81019..47b2186068 100644
--- a/packages/trpc-interface/package.json
+++ b/packages/trpc-interface/package.json
@@ -7,8 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck"
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"dependencies": {
"@trpc/client": "^10.38.1",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index db06af9a57..0608a7ce18 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1467,12 +1467,6 @@ importers:
specifier: workspace:*
version: link:../sdk
devDependencies:
- '@jest/globals':
- specifier: ^29.7.0
- version: 29.7.0
- '@webstudio-is/jest-config':
- specifier: workspace:*
- version: link:../jest-config
'@webstudio-is/tsconfig':
specifier: workspace:*
version: link:../tsconfig