diff --git a/packages/react-calendar/package.json b/packages/react-calendar/package.json index 7cf9875c..54797ad8 100644 --- a/packages/react-calendar/package.json +++ b/packages/react-calendar/package.json @@ -29,7 +29,7 @@ "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", "test": "yarn lint && yarn tsc && yarn prettier && yarn unit", - "tsc": "tsc --noEmit", + "tsc": "tsc", "unit": "vitest", "watch": "yarn build-js-esm --watch & yarn build-js-cjs --watch & nodemon --watch src --ext css --exec \"yarn copy-styles\"" }, diff --git a/packages/react-calendar/tsconfig.build.json b/packages/react-calendar/tsconfig.build.json index 699011c4..1bb0b6a7 100644 --- a/packages/react-calendar/tsconfig.build.json +++ b/packages/react-calendar/tsconfig.build.json @@ -1,4 +1,10 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src"], "exclude": ["src/**/*.spec.ts", "src/**/*.spec.tsx"] } diff --git a/packages/react-calendar/tsconfig.json b/packages/react-calendar/tsconfig.json index b18b5c6d..e48183d2 100644 --- a/packages/react-calendar/tsconfig.json +++ b/packages/react-calendar/tsconfig.json @@ -6,11 +6,12 @@ "jsx": "react", "module": "esnext", "moduleResolution": "node", + "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, "target": "es5", "verbatimModuleSyntax": true }, - "include": ["src"] + "exclude": ["dist"] } diff --git a/sample/tsconfig.json b/sample/tsconfig.json index 96ce1f8c..79aadbbe 100644 --- a/sample/tsconfig.json +++ b/sample/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "module": "esnext", "moduleResolution": "bundler", + "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, diff --git a/test/package.json b/test/package.json index 475de97b..e04d8dc3 100644 --- a/test/package.json +++ b/test/package.json @@ -11,7 +11,7 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "prettier": "prettier --check . --cache", "test": "yarn lint && yarn tsc && yarn prettier", - "tsc": "tsc --noEmit" + "tsc": "tsc" }, "author": { "name": "Wojciech Maj", diff --git a/test/tsconfig.json b/test/tsconfig.json index 96ce1f8c..79aadbbe 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -6,6 +6,7 @@ "jsx": "react-jsx", "module": "esnext", "moduleResolution": "bundler", + "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true,