-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[Bug]: tsc --watch --noEmit not respecting tsconfig.json.watchOptions.excludedDirectories #63355
Copy link
Copy link
Closed
Description
🔎 Search Terms
tsc --watch --noEmit not respecting tsconfig.json.watchOptions.excludedDirectories
🕗 Version & Regression Information
- This changed between versions 5.9.3 and 6.0.2
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
No need for playground
💻 Code
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx",
"target": "es2020",
"module": "es2020",
"moduleResolution": "bundler",
"rootDir": ".",
"strict": true,
"esModuleInterop": true,
"isolatedModules": false,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"lib": ["es6", "dom"],
"noImplicitAny": true,
"paths": {
"@/*": ["./*"]
}
},
"include": ["src/**/*.ts", "packages/**/*.ts", "arkos.config.ts"],
"exclude": [
"**/node_modules",
"./node_modules",
"node_modules",
"prisma/**/*.ts",
".build",
"build",
"temp",
"dist",
"src/**/*.test.ts",
"src/**/*.e2e.ts",
"uploads"
],
"watchOptions": {
"excludeDirectories": [
"**/node_modules",
"dist",
"temp",
".build",
"./node_modules",
"node_modules"
],
"excludeFiles": ["**/*.js", "**/*.test.ts", "**/*.cjs"],
"watchFile": "useFsEvents"
}
}
🙁 Actual behavior
it is watching node_modules folder
pnpm exec tsc --watch --noEmit --listFiles
apps/api/src/modules/product/dtos/utils/dtos/create-product-at
tribute-dto-for-create-product.dto.ts
apps/api/node_modules/.pnpm/lru-cache@11.2.1/node_modules/lru-
cache/dist/esm/index.d.ts
apps/api/node_modules/.pnpm/onnxruntime-common@1.14.0/node_mod
ules/onnxruntime-common/dist/lib/tensor-utils.d.ts
apps/api/node_modules/.pnpm/onnxruntime-common@1.14.0/node_mod
ules/onnxruntime-common/dist/lib/tensor.d.ts
🙂 Expected behavior
It should not watch
Additional information about the issue
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels