-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TypeScript exclude node_modules not working at all #46634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
solution
# ✅
$ tsc --skipLibCheck ./test.ts |
wait, do you say if you add it in the compilerOptions is doesn't work, but as a command line parameter it does? that would be.... surprising. |
that's right. |
Your tsconfig is completely ignored when you specify files on the command line instead of
|
@andrewbranch without the |
not work, too {
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": false,
"jsx": "react",
"outDir": "./dist/",
"baseUrl": "./",
"paths": {
"@/*": ["src/*"],
"@/components/*": ["src/components/*"]
},
"types": []
},
"include": [
"./src/**/*"
],
"exclude": [
"node_modules"
],
"files": [
"./test.ts"
]
} |
Use |
Uh oh!
There was an error while loading. Please reload this page.
TypeScript exclude node_modules not working at all
https://github.com/microsoft/TypeScript-Website/blob/v2/packages/documentation/copy/en/project-config/tsconfig.json.md
https://github.community/t/typescript-exclude-node-modules-not-working/209865
The text was updated successfully, but these errors were encountered: