I am currently working on a web project that involves organizing folders.
Within my project structure, I have subfolders like the following:
src/app/shared/models
src/app/shared/services
src/app/shared/types
Each of these subfolders contains additional folders or files within them. However, I want to exclude specific folders from being included in my project. I attempted to do so by using the following configuration:
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"src/app/shared/**/*"
]
Unfortunately, this setup is not working as intended. Even specifying "src/app/shared/*"
did not yield the desired result. Can anyone provide guidance on how to achieve this?
Below is an excerpt from my current tsconfig.json file:
{
"compilerOptions": {
"outDir": "./dist/out-tsc",
"baseUrl": "src",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2015",
"dom"
]
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"src/app/shared/**/*"
]
}
Any help would be greatly appreciated. Thank you!