My current task involves configuring my application to monitor any changes in Typescript files and automatically recompile and restart the server. Below is my tsconfig.json configuration:
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false,
"rootDir" : "assets/app",
"outDir": "../public/js/app"
},
"files": [
"./assets/app/*"
],
"exclude": [
"node_modules"
],
"atom": {
"rewriteTsconfig": true
}
}
In the configuration, I have specified the root directory where the .ts files are located and set the output directory for the transpiled code.
Here is how my file structure looks:
https://i.sstatic.net/bXfVD.png
However, upon attempting to execute the tsc -w command, I encounter the following error message:
error TS6053: File 'assets/app/*.ts' not found.
This implies that the tsconfig.json file may not be correctly parsing my ts files from within the rootDir folder. Despite my efforts to troubleshoot this issue, I haven't been successful. Any suggestions would be greatly appreciated!
Thank you!