diff --git a/apps/cli-playground/tsconfig.json b/apps/cli-playground/tsconfig.json index 77cc78ee..3f7f34ce 100644 --- a/apps/cli-playground/tsconfig.json +++ b/apps/cli-playground/tsconfig.json @@ -10,7 +10,6 @@ "jsx": "react-jsx", "composite": false, // you should enable this only for using TS project references. But they are fairly discourages nowadays. "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", "strict": true, // this is required for Sheriff to perform correctly. "noFallthroughCasesInSwitch": true, "forceConsistentCasingInFileNames": true, diff --git a/apps/config-validation-playground/tsconfig.json b/apps/config-validation-playground/tsconfig.json index 7c3260d5..d2fe0478 100644 --- a/apps/config-validation-playground/tsconfig.json +++ b/apps/config-validation-playground/tsconfig.json @@ -7,7 +7,6 @@ "module": "ESNext", "composite": false, "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", "jsx": "react-jsx", "skipLibCheck": true, "allowJs": false, diff --git a/apps/docs-website/package.json b/apps/docs-website/package.json index 8122f5db..e11a9e7f 100644 --- a/apps/docs-website/package.json +++ b/apps/docs-website/package.json @@ -14,7 +14,7 @@ "typecheck": "tsc --noEmit", "lint": "eslint . --max-warnings=0 --cache --cache-location=node_modules/.cache/.eslintcache", "typesync": "typesync --dry=fail", - "clean": "pnpm clear && rm -rf .turbo dist" + "clean": "pnpm clear && rm -rf .turbo dist node_modules/.cache" }, "dependencies": { "@docusaurus/core": "3.4.0", diff --git a/apps/sheriff-webservices/tsconfig.json b/apps/sheriff-webservices/tsconfig.json index 2ec4dd87..559c2a42 100644 --- a/apps/sheriff-webservices/tsconfig.json +++ b/apps/sheriff-webservices/tsconfig.json @@ -6,9 +6,9 @@ "compilerOptions": { "outDir": "./dist", "esModuleInterop": true, - "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", "jsx": "react-jsx", - "jsxImportSource": "hono/jsx" + "jsxImportSource": "hono/jsx", + "incremental": true, + "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" } } diff --git a/packages/eslint-config-sheriff/package.json b/packages/eslint-config-sheriff/package.json index 23a99dee..3cff3209 100644 --- a/packages/eslint-config-sheriff/package.json +++ b/packages/eslint-config-sheriff/package.json @@ -45,7 +45,7 @@ "bug": "https://github.com/AndreaPontrandolfo/sheriff/labels/bug", "scripts": { "preinstall": "npx only-allow pnpm", - "clean": "rm -rf .turbo dist", + "clean": "rm -rf .turbo dist node_modules/.cache", "re-bundle-types": "dts-bundle-generator -out-file=dist/index.d.ts ./dist/index.d.ts", "build": "tsup && pnpm re-bundle-types", "build-watch": "tsup && pnpm re-bundle-types", diff --git a/packages/eslint-config-sheriff/tsconfig.json b/packages/eslint-config-sheriff/tsconfig.json index f04c602c..35f526ed 100644 --- a/packages/eslint-config-sheriff/tsconfig.json +++ b/packages/eslint-config-sheriff/tsconfig.json @@ -4,7 +4,6 @@ "exclude": ["dist", "build", "node_modules"], "extends": "tsconfig/base.json", "compilerOptions": { - "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" + "incremental": true } } diff --git a/packages/sheriff-cli/package.json b/packages/sheriff-cli/package.json index f7a1a327..bfdc32bb 100644 --- a/packages/sheriff-cli/package.json +++ b/packages/sheriff-cli/package.json @@ -5,7 +5,7 @@ "description": "The Sheriff CLI. Used to manage Sheriff-based ESLint configs.", "scripts": { "dev": "tsx ./src/index.ts", - "clean": "rm -rf .turbo dist", + "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", "typecheck": "tsc --noEmit", "lint": "eslint ./src --max-warnings=0 --cache --cache-location=node_modules/.cache/.eslintcache", diff --git a/packages/sheriff-cli/tsconfig.json b/packages/sheriff-cli/tsconfig.json index d5f175e1..80569c44 100644 --- a/packages/sheriff-cli/tsconfig.json +++ b/packages/sheriff-cli/tsconfig.json @@ -7,7 +7,6 @@ "module": "ESNext", "moduleResolution": "Bundler", "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", "resolveJsonModule": true } } diff --git a/packages/sheriff-create-config/package.json b/packages/sheriff-create-config/package.json index dbe6b452..11c9baf8 100644 --- a/packages/sheriff-create-config/package.json +++ b/packages/sheriff-create-config/package.json @@ -5,7 +5,7 @@ "description": "This package creates new Sheriff configs.", "scripts": { "dev": "tsx ./src/index.ts", - "clean": "rm -rf .turbo dist", + "clean": "rm -rf .turbo dist node_modules/.cache", "build": "tsup", "build-watch": "tsup", "typecheck": "tsc --noEmit", diff --git a/packages/sheriff-create-config/tsconfig.json b/packages/sheriff-create-config/tsconfig.json index d5f175e1..80569c44 100644 --- a/packages/sheriff-create-config/tsconfig.json +++ b/packages/sheriff-create-config/tsconfig.json @@ -7,7 +7,6 @@ "module": "ESNext", "moduleResolution": "Bundler", "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json", "resolveJsonModule": true } } diff --git a/packages/sheriff-types/package.json b/packages/sheriff-types/package.json index 812ad680..9550e093 100644 --- a/packages/sheriff-types/package.json +++ b/packages/sheriff-types/package.json @@ -10,7 +10,7 @@ "src" ], "scripts": { - "clean": "rm -rf .turbo dist", + "clean": "rm -rf .turbo dist node_modules/.cache", "typecheck": "tsc --noEmit" }, "devDependencies": { diff --git a/packages/sheriff-types/tsconfig.json b/packages/sheriff-types/tsconfig.json index 260808e9..91d6186b 100644 --- a/packages/sheriff-types/tsconfig.json +++ b/packages/sheriff-types/tsconfig.json @@ -5,7 +5,6 @@ "extends": "tsconfig/base.json", "compilerOptions": { "module": "ESNext", - "incremental": true, - "tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json" + "incremental": true } } diff --git a/packages/sheriff-utils/package.json b/packages/sheriff-utils/package.json index ebd3c436..9dc67143 100644 --- a/packages/sheriff-utils/package.json +++ b/packages/sheriff-utils/package.json @@ -15,7 +15,7 @@ "scripts": { "rulesgen": "tsx ./src/generateRulesDataset.ts", "publint": "publint", - "clean": "rm -rf .turb dist" + "clean": "rm -rf .turb dist node_modules/.cache" }, "devDependencies": { "@sherifforg/types": "workspace:*", diff --git a/packages/tsconfig/base.json b/packages/tsconfig/base.json index a446566c..22105855 100644 --- a/packages/tsconfig/base.json +++ b/packages/tsconfig/base.json @@ -1,8 +1,12 @@ { "$schema": "https://json.schemastore.org/tsconfig", "display": "Default", - "include": ["src"], - "exclude": ["dist", "build", "node_modules"], + "include": ["${configDir}/src"], + "exclude": [ + "${configDir}/dist", + "${configDir}/build", + "${configDir}/node_modules" + ], "compilerOptions": { "composite": false, "target": "ESNext", @@ -17,6 +21,7 @@ "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "skipLibCheck": true, - "verbatimModuleSyntax": true + "verbatimModuleSyntax": true, + "tsBuildInfoFile": "${configDir}/node_modules/.cache/tsbuildinfo.json" } }