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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Make the base `tsconfig.json` to assume declaration emit (#1470)
Mateusz Burzyński4424add48090
diff --git a/apps/builder/package.json b/apps/builder/package.jsonindex f05f060e5b..ea3ab934a6 100644--- a/apps/builder/package.json+++ b/apps/builder/package.json@@ -8,7 +8,7 @@"start": "remix-serve build","start-local": "dotenv -e .env npm start","dev": "remix dev",- "typecheck": "tsc",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint . --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm lint && pnpm typecheck && pnpm test",diff --git a/apps/builder/tsconfig.json b/apps/builder/tsconfig.jsonindex ed074db764..9bfa898c6b 100644--- a/apps/builder/tsconfig.json+++ b/apps/builder/tsconfig.json@@ -10,6 +10,8 @@"compilerOptions": {"paths": { "~/*": ["app/*"] },"baseUrl": ".",- "rootDir": "./app"+ "rootDir": "./app",+ "declaration": false,+ "declarationDir": null}}diff --git a/packages/asset-uploader/package.json b/packages/asset-uploader/package.jsonindex 7b64a6a1a5..60535152f3 100644--- a/packages/asset-uploader/package.json+++ b/packages/asset-uploader/package.json@@ -6,12 +6,12 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/authorization-token/package.json b/packages/authorization-token/package.jsonindex db183c8073..55aed0ad2f 100644--- a/packages/authorization-token/package.json+++ b/packages/authorization-token/package.json@@ -6,12 +6,12 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/css-data/package.json b/packages/css-data/package.jsonindex 3e440bc07b..2487cc00fb 100644--- a/packages/css-data/package.json+++ b/packages/css-data/package.json@@ -6,12 +6,12 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package","build:mdn-data": "tsx ./bin/mdn-data.ts ./src/__generated__ && prettier --write \"./src/__generated__/**/*.ts\"",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"devDependencies": {diff --git a/packages/css-engine/package.json b/packages/css-engine/package.jsonindex 955b5c69cf..713521b265 100644--- a/packages/css-engine/package.json+++ b/packages/css-engine/package.json@@ -6,11 +6,11 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","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.jsonindex 58eb65aa44..5a0b219563 100644--- a/packages/css-vars/package.json+++ b/packages/css-vars/package.json@@ -6,11 +6,11 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"devDependencies": {diff --git a/packages/dashboard/package.json b/packages/dashboard/package.jsonindex b24d525dc5..227da30801 100644--- a/packages/dashboard/package.json+++ b/packages/dashboard/package.json@@ -6,7 +6,7 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch",diff --git a/packages/design-system/package.json b/packages/design-system/package.jsonindex 2587ca91f5..8eaba66c3e 100644--- a/packages/design-system/package.json+++ b/packages/design-system/package.json@@ -9,8 +9,8 @@"dev": "build-package --watch","build": "build-package","build-figma-tokens": "tsx ./bin/transform-figma-tokens.ts",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",- "typecheck": "tsc --noEmit",+ "dts": "tsc",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint && pnpm test",diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.jsonindex f83c715caa..ea6091a459 100644--- a/packages/feature-flags/package.json+++ b/packages/feature-flags/package.json@@ -6,11 +6,11 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {},diff --git a/packages/fonts/package.json b/packages/fonts/package.jsonindex ab8831b5f6..58245b00f2 100644--- a/packages/fonts/package.json+++ b/packages/fonts/package.json@@ -6,12 +6,12 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","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.jsonindex 7fd9eae3e1..52ddcabc95 100644--- a/packages/generate-arg-types/package.json+++ b/packages/generate-arg-types/package.json@@ -8,8 +8,8 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",- "typecheck": "tsc --noEmit",+ "dts": "tsc",+ "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.jsonindex 0c7f6f31aa..f3f51cf0c3 100644--- a/packages/http-client/package.json+++ b/packages/http-client/package.json@@ -8,9 +8,9 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","test": "NODE_OPTIONS=--experimental-vm-modules jest",- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint"},diff --git a/packages/icons/package.json b/packages/icons/package.jsonindex eadea47ffc..ba053be7a5 100644--- a/packages/icons/package.json+++ b/packages/icons/package.json@@ -8,9 +8,9 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","generate": "rm -fr src/__generated__ && NODE_OPTIONS='--loader=tsx' svgo-jsx svgo-jsx.config.ts",- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint","storybook:run": "start-storybook -p 6006",diff --git a/packages/image/package.json b/packages/image/package.jsonindex 8dc6b6d022..b4370ea9b8 100644--- a/packages/image/package.json+++ b/packages/image/package.json@@ -6,13 +6,13 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint && pnpm test","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 --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","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.jsonindex 677b1fe61c..4eb1a86973 100644--- a/packages/prisma-client/package.json+++ b/packages/prisma-client/package.json@@ -6,7 +6,7 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint","dev": "prisma generate --watch & build-package --watch --no-generated-as-entries",diff --git a/packages/project-build/package.json b/packages/project-build/package.jsonindex 1ba1848a6d..8710fdcc77 100644--- a/packages/project-build/package.json+++ b/packages/project-build/package.json@@ -25,13 +25,13 @@],"sideEffects": false,"scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint && pnpm test","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types"+ "dts": "tsc"},"dependencies": {"@webstudio-is/css-data": "workspace:^",diff --git a/packages/project/package.json b/packages/project/package.jsonindex 3374fb621a..ce42247803 100644--- a/packages/project/package.json+++ b/packages/project/package.json@@ -6,11 +6,11 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.jsonindex 0d30059620..21b48e3771 100644--- a/packages/react-sdk/package.json+++ b/packages/react-sdk/package.json@@ -9,8 +9,8 @@"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 --emitDeclarationOnly --declaration --declarationDir lib/types",- "typecheck": "tsc --noEmit",+ "dts": "tsc",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0","checks": "pnpm typecheck && pnpm lint && pnpm test",diff --git a/packages/scripts/package.json b/packages/scripts/package.jsonindex b785cddbc3..40643a4216 100644--- a/packages/scripts/package.json+++ b/packages/scripts/package.json@@ -11,7 +11,7 @@"build-package": "./build-package.ts"},"scripts": {- "checks": "tsc --noEmit"+ "checks": "tsc --noEmit --emitDeclarationOnly false"},"dependencies": {"esbuild": "^0.17.14",diff --git a/packages/sdk-size-test/package.json b/packages/sdk-size-test/package.jsonindex f1cc2190a4..83ba54013e 100644--- a/packages/sdk-size-test/package.json+++ b/packages/sdk-size-test/package.json@@ -5,7 +5,7 @@"sideEffects": false,"scripts": {"size-test": "rm -rf ./public && rm -rf ./functions && remix build && size-limit",- "typecheck": "tsc --noEmit"+ "typecheck": "tsc --noEmit --emitDeclarationOnly false"},"size-limit": [{diff --git a/packages/trpc-interface/package.json b/packages/trpc-interface/package.jsonindex fc081a15da..a061e09c29 100644--- a/packages/trpc-interface/package.json+++ b/packages/trpc-interface/package.json@@ -6,12 +6,12 @@"homepage": "https://webstudio.is","type": "module","scripts": {- "typecheck": "tsc --noEmit",+ "typecheck": "tsc --noEmit --emitDeclarationOnly false","test": "NODE_OPTIONS=--experimental-vm-modules jest","checks": "pnpm typecheck && pnpm lint","dev": "build-package --watch","build": "build-package",- "dts": "tsc --emitDeclarationOnly --declaration --declarationDir lib/types",+ "dts": "tsc","lint": "eslint ./src --ext .ts,.tsx --max-warnings 0"},"dependencies": {diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.jsonindex 933f36d949..7baf018ebb 100644--- a/packages/tsconfig/base.json+++ b/packages/tsconfig/base.json@@ -17,6 +17,9 @@"jsx": "react-jsx","resolveJsonModule": true,"noFallthroughCasesInSwitch": true,- "verbatimModuleSyntax": true+ "verbatimModuleSyntax": true,+ "emitDeclarationOnly": true,+ "declaration": true,+ "declarationDir": "lib/types"}}