Consider the following tsconfig.json.
{
"compilerOptions": {
"module": "commonjs",
"target": "es2016",
"outDir": "./dist",
"baseUrl": "./src",
"paths": {
"core/*": ["core/*"]
}
},
"exclude": [
"node_modules",
"dist"
]
}
outDir should be independent of baseUrl, so that resulting output directory is projectRoot/dist, not projectRoot/src/dist.
AFAIK, current implementation searchs for projectRoot/src/dist and throw errors.
Consider the following
tsconfig.json.{ "compilerOptions": { "module": "commonjs", "target": "es2016", "outDir": "./dist", "baseUrl": "./src", "paths": { "core/*": ["core/*"] } }, "exclude": [ "node_modules", "dist" ] }outDir should be independent of baseUrl, so that resulting output directory is
projectRoot/dist, notprojectRoot/src/dist.AFAIK, current implementation searchs for
projectRoot/src/distand throw errors.