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: remove unused build scripts (#3123)

Bogdan Chadkinecc7c75e84a2
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 54eee119ca..bccffb6212 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -5,7 +5,7 @@
"description": "Webstudio Builder UI as a service",
"type": "module",
"scripts": {
- "generate-metas": "pnpm tsx scripts/generate-metas.mts",
+ "generate-metas": "pnpm tsx --conditions=webstudio scripts/generate-metas.mts",
"prebuild": "which remix",
"build": "pnpm generate-metas && remix vite:build",
"start": "remix-serve build/server/index.js",
diff --git a/package.json b/package.json
index 3770c780bb..0698378884 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,6 @@
"private": true,
"scripts": {
"build": "turbo run build --filter='!./fixtures/*'",
- "build-packages": "turbo run build --filter=\"!@webstudio-is/builder\"",
"dts": "turbo run dts",
"size-test": "turbo run size-test",
"checks": "turbo run checks",
diff --git a/packages/ai/package.json b/packages/ai/package.json
index a024e2bc8f..cbdd43340c 100644
--- a/packages/ai/package.json
+++ b/packages/ai/package.json
@@ -10,10 +10,7 @@
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
"checks": "pnpm typecheck && pnpm test",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && pnpm build:prompts && esbuild 'src/**/*.ts' --outdir=lib",
- "build:prompts": "tsx ./bin/build-prompts.ts \"./src/chains/**/*.prompt.md\"",
- "dts": "tsc --project tsconfig.dts.json"
+ "build:prompts": "tsx ./bin/build-prompts.ts \"./src/chains/**/*.prompt.md\""
},
"devDependencies": {
"@webstudio-is/jest-config": "workspace:^",
@@ -24,20 +21,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.test.*"
- ],
"license": "AGPL-3.0-or-later",
"sideEffects": false,
"dependencies": {
diff --git a/packages/ai/tsconfig.dts.json b/packages/ai/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/ai/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.json
index 5945ca0dcf..563d3c2393 100644
--- a/packages/asset-uploader/package.json
+++ b/packages/asset-uploader/package.json
@@ -8,10 +8,7 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck && pnpm test"
},
"dependencies": {
"@aws-crypto/sha256-js": "^5.0.0",
@@ -37,20 +34,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/asset-uploader/tsconfig.dts.json b/packages/asset-uploader/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/asset-uploader/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.json
index f3c5b1596e..affec80d6b 100644
--- a/packages/authorization-token/package.json
+++ b/packages/authorization-token/package.json
@@ -7,10 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
@@ -23,20 +20,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/authorization-token/tsconfig.dts.json b/packages/authorization-token/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/authorization-token/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index 0288ed7146..fc3f2904ca 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -8,11 +8,8 @@
"scripts": {
"typecheck": "tsc",
"checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
"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",
- "dts": "tsc --project tsconfig.dts.json",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
"devDependencies": {
@@ -31,14 +28,8 @@
"zod": "^3.19.1"
},
"exports": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false,
diff --git a/packages/css-data/tsconfig.dts.json b/packages/css-data/tsconfig.dts.json
deleted file mode 100644
index e54663ff02..0000000000
--- a/packages/css-data/tsconfig.dts.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "rootDir": "src",
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json
index 6278a93e2e..eeeb2314aa 100644
--- a/packages/dashboard/package.json
+++ b/packages/dashboard/package.json
@@ -7,10 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
@@ -24,20 +21,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/dashboard/tsconfig.dts.json b/packages/dashboard/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/dashboard/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index 2a9255fcf7..50b6c8a0d0 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -6,10 +6,7 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
"build-figma-tokens": "tsx ./bin/transform-figma-tokens.ts",
- "dts": "tsc --project tsconfig.dts.json",
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"checks": "pnpm typecheck && pnpm test",
@@ -77,14 +74,8 @@
"warn-once": "^0.1.1"
},
"exports": {
- "webstudio": "./src/index.ts",
- "import": "./lib/index.js",
- "types": "./lib/types/index.d.ts"
+ "webstudio": "./src/index.ts"
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/design-system/tsconfig.dts.json b/packages/design-system/tsconfig.dts.json
deleted file mode 100644
index f461af911e..0000000000
--- a/packages/design-system/tsconfig.dts.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "exclude": ["**/*.stories.tsx"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/domain/package.json b/packages/domain/package.json
index 9add88f8c6..129e213828 100644
--- a/packages/domain/package.json
+++ b/packages/domain/package.json
@@ -7,10 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
@@ -25,20 +22,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "import": "./lib/index.js",
- "types": "./lib/types/index.d.ts"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "import": "./lib/index.server.js",
- "types": "./lib/types/index.server.d.ts"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/domain/tsconfig.dts.json b/packages/domain/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/domain/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.json
index 50dceb6da6..f688eb08a2 100644
--- a/packages/feature-flags/package.json
+++ b/packages/feature-flags/package.json
@@ -7,24 +7,15 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*"
},
"exports": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/feature-flags/tsconfig.dts.json b/packages/feature-flags/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/feature-flags/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.json
index cebd4cb8b6..ba6cd99fa3 100644
--- a/packages/generate-arg-types/package.json
+++ b/packages/generate-arg-types/package.json
@@ -6,7 +6,6 @@
"homepage": "https://webstudio.is",
"type": "module",
"scripts": {
- "dts": "tsc --project tsconfig.dts.json",
"typecheck": "tsc",
"checks": "pnpm typecheck"
},
@@ -22,10 +21,6 @@
"tsx": "^4.7.2",
"typescript": "5.2.2"
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"bin": {
"generate-arg-types": "./src/cli.ts"
},
diff --git a/packages/generate-arg-types/tsconfig.dts.json b/packages/generate-arg-types/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/generate-arg-types/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/html-data/package.json b/packages/html-data/package.json
index 3562ab29bd..af5f12e324 100644
--- a/packages/html-data/package.json
+++ b/packages/html-data/package.json
@@ -7,24 +7,15 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"devDependencies": {
"@webstudio-is/tsconfig": "workspace:*"
},
"peerDependencies": {},
"exports": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false,
diff --git a/packages/html-data/tsconfig.dts.json b/packages/html-data/tsconfig.dts.json
deleted file mode 100644
index e54663ff02..0000000000
--- a/packages/html-data/tsconfig.dts.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "rootDir": "src",
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/jsx-utils/package.json b/packages/jsx-utils/package.json
index 375d807ea8..c9459da62e 100644
--- a/packages/jsx-utils/package.json
+++ b/packages/jsx-utils/package.json
@@ -9,10 +9,7 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "pnpm build --watch",
- "build": "esbuild 'src/**/*.ts' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck && pnpm test"
},
"devDependencies": {
"@webstudio-is/jest-config": "workspace:^",
@@ -23,20 +20,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.test.*"
- ],
"license": "AGPL-3.0-or-later",
"sideEffects": false,
"dependencies": {
diff --git a/packages/jsx-utils/tsconfig.dts.json b/packages/jsx-utils/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/jsx-utils/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/project-build/package.json b/packages/project-build/package.json
index 37167fcca5..741e977ec3 100644
--- a/packages/project-build/package.json
+++ b/packages/project-build/package.json
@@ -9,28 +9,17 @@
"type": "module",
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"sideEffects": false,
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck && pnpm test",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck && pnpm test"
},
"dependencies": {
"@webstudio-is/prisma-client": "workspace:*",
diff --git a/packages/project-build/tsconfig.dts.json b/packages/project-build/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/project-build/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/project/package.json b/packages/project/package.json
index 5d15791088..f50e0cb186 100644
--- a/packages/project/package.json
+++ b/packages/project/package.json
@@ -7,10 +7,7 @@
"type": "module",
"scripts": {
"typecheck": "tsc",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {
"@trpc/server": "^10.38.1",
@@ -30,20 +27,12 @@
},
"exports": {
".": {
- "webstudio": "./src/index.ts",
- "types": "./lib/types/index.d.ts",
- "import": "./lib/index.js"
+ "webstudio": "./src/index.ts"
},
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "types": "./lib/types/index.server.d.ts",
- "import": "./lib/index.server.js"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/project/tsconfig.dts.json b/packages/project/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/project/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}
diff --git a/packages/trpc-interface/package.json b/packages/trpc-interface/package.json
index 5a77293739..e0df8067ed 100644
--- a/packages/trpc-interface/package.json
+++ b/packages/trpc-interface/package.json
@@ -8,10 +8,7 @@
"scripts": {
"typecheck": "tsc",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
- "checks": "pnpm typecheck",
- "dev": "pnpm build --watch",
- "build": "rm -rf lib && esbuild 'src/**/*.ts' 'src/**/*.tsx' --outdir=lib",
- "dts": "tsc --project tsconfig.dts.json"
+ "checks": "pnpm typecheck"
},
"dependencies": {
"@trpc/client": "^10.38.1",
@@ -29,15 +26,9 @@
},
"exports": {
"./index.server": {
- "webstudio": "./src/index.server.ts",
- "import": "./lib/index.server.js",
- "types": "./lib/types/index.server.d.ts"
+ "webstudio": "./src/index.server.ts"
}
},
- "files": [
- "lib/*",
- "!*.{test,stories}.*"
- ],
"license": "AGPL-3.0-or-later",
"private": true,
"sideEffects": false
diff --git a/packages/trpc-interface/tsconfig.dts.json b/packages/trpc-interface/tsconfig.dts.json
deleted file mode 100644
index e84928fb3a..0000000000
--- a/packages/trpc-interface/tsconfig.dts.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["src"],
- "compilerOptions": {
- "declarationDir": "lib/types"
- }
-}