I'm grappling with a frustrating issue related to tsc that's really getting to me. The problem involves having a file b.ts
in the src
folder, and another file a.ts
in the project root folder. Here is an excerpt of my tsconfig file:
{
"compilerOptions": {
"outDir": "build3"
},
"rootDir": "src"
}
Despite this configuration, when I compile using tsc -build tsconfig.json
, both files a and b end up in the build folder along with the src folder. What I actually want is only b.js
in the build folder. If I remove a.ts
, things work as expected. However, if there is any .ts file in the root folder, everything gets compiled.
I've attempted utilizing options like files
, exclude
, include
, rootDir
in the config file but to no avail...
HELP ME!!