Why does my NxWorkspace have a tsconfig.lib.json file? I only have one Angular app in my workspace.
tsconfig.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"types": []
},
"include": [
"**/*.ts"
],
"exclude": [
"jest.config.ts",
"**/*.spec.ts",
"**/*.test.ts"
]
}
tsconfig.lib.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
}
Is there a specific reason for splitting the 'compilerOptions' this way, or was it done without much thought?
If I move the compiler options from tsconfig.lib.json to tsconfig.json, will everything still function correctly? Am I overlooking something?