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.

Fixed location of emitted declarations (#1487)

Mateusz Burzyński133661dfcb51
diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.json
index 1830f704b6..d3beee8697 100644
--- a/packages/asset-uploader/package.json
+++ b/packages/asset-uploader/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {
diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.json
index f5f137c9b8..859a992a1c 100644
--- a/packages/authorization-token/package.json
+++ b/packages/authorization-token/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index de05ed7655..0ca1fef0e8 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -11,7 +11,7 @@
"dev": "build-package --watch",
"build": "build-package",
"build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/**/*.ts\"",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"devDependencies": {
diff --git a/packages/css-engine/package.json b/packages/css-engine/package.json
index 9a6f523cfe..c9a1f91c54 100644
--- a/packages/css-engine/package.json
+++ b/packages/css-engine/package.json
@@ -10,7 +10,7 @@
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
"storybook:run": "start-storybook -p 6006",
diff --git a/packages/css-vars/package.json b/packages/css-vars/package.json
index 68b2538d4d..cc0e44893a 100644
--- a/packages/css-vars/package.json
+++ b/packages/css-vars/package.json
@@ -10,7 +10,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"devDependencies": {
diff --git a/packages/design-system/package.json b/packages/design-system/package.json
index a10161fdbc..6238f963a9 100644
--- a/packages/design-system/package.json
+++ b/packages/design-system/package.json
@@ -9,7 +9,7 @@
"dev": "build-package --watch",
"build": "build-package",
"build-figma-tokens": "tsx ./bin/transform-figma-tokens.ts",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.json
index ea6091a459..02ea2b2c49 100644
--- a/packages/feature-flags/package.json
+++ b/packages/feature-flags/package.json
@@ -10,7 +10,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {},
diff --git a/packages/fonts/package.json b/packages/fonts/package.json
index c61424f589..a12840bca1 100644
--- a/packages/fonts/package.json
+++ b/packages/fonts/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {
diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.json
index 8ab53755a7..48f23588dd 100644
--- a/packages/generate-arg-types/package.json
+++ b/packages/generate-arg-types/package.json
@@ -8,7 +8,7 @@
"scripts": {
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"checks": "pnpm typecheck && pnpm lint",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
diff --git a/packages/http-client/package.json b/packages/http-client/package.json
index b99beef598..edc560c212 100644
--- a/packages/http-client/package.json
+++ b/packages/http-client/package.json
@@ -8,7 +8,7 @@
"scripts": {
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
diff --git a/packages/icons/package.json b/packages/icons/package.json
index 3eed34c28a..df93d6b66c 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -8,7 +8,7 @@
"scripts": {
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"generate": "rm -fr src/__generated__ && NODE_OPTIONS='--loader=tsx' svgo-jsx svgo-jsx.config.ts",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
diff --git a/packages/image/package.json b/packages/image/package.json
index b6dedc5e09..9e0d4baf65 100644
--- a/packages/image/package.json
+++ b/packages/image/package.json
@@ -12,7 +12,7 @@
"dev": "build-package --watch",
"build": "build-package",
"build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
"storybook:run": "start-storybook -p 6006",
"storybook:build": "build-storybook",
diff --git a/packages/prisma-client/package.json b/packages/prisma-client/package.json
index 4cfb95be5b..4ef0415b24 100644
--- a/packages/prisma-client/package.json
+++ b/packages/prisma-client/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "prisma generate --watch & build-package --watch --no-generated-as-entries",
"build": "prisma format && prisma generate && build-package --no-generated-as-entries",
- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
+ "dts": "tsc --declarationDir lib",
"migrations": "./migrations-cli/cli.ts"
},
"bin": {
diff --git a/packages/project-build/package.json b/packages/project-build/package.json
index 63add2a792..f0bd2d17e6 100644
--- a/packages/project-build/package.json
+++ b/packages/project-build/package.json
@@ -31,7 +31,7 @@
"checks": "pnpm typecheck && pnpm lint && pnpm test",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc"
+ "dts": "tsc --declarationDir lib/types"
},
"dependencies": {
"@webstudio-is/css-data": "workspace:^",
diff --git a/packages/project/package.json b/packages/project/package.json
index 84d8d855ae..bbc06250bc 100644
--- a/packages/project/package.json
+++ b/packages/project/package.json
@@ -10,7 +10,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {
diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.json
index 527b0401b3..2feb8a75e5 100644
--- a/packages/react-sdk/package.json
+++ b/packages/react-sdk/package.json
@@ -9,7 +9,7 @@
"dev": "build-package --watch",
"build": "build-package",
"build:args": "generate-arg-types './src/components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0",
diff --git a/packages/trpc-interface/package.json b/packages/trpc-interface/package.json
index bb2242eaa0..54842119cd 100644
--- a/packages/trpc-interface/package.json
+++ b/packages/trpc-interface/package.json
@@ -11,7 +11,7 @@
"checks": "pnpm typecheck && pnpm lint",
"dev": "build-package --watch",
"build": "build-package",
- "dts": "tsc",
+ "dts": "tsc --declarationDir lib/types",
"lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"
},
"dependencies": {
diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json
index 7baf018ebb..49608a247d 100644
--- a/packages/tsconfig/base.json
+++ b/packages/tsconfig/base.json
@@ -19,7 +19,6 @@
"noFallthroughCasesInSwitch": true,
"verbatimModuleSyntax": true,
"emitDeclarationOnly": true,
- "declaration": true,
- "declarationDir": "lib/types"
+ "declaration": true
}
}