I can\'t seem to get the outDir flag working when used in package.json. Directory structure is pretty simple: tsconfig.json at the root le
outDir
package.json
tsconfig.json
When you pass in files for compilation with tsc src/index.ts, your tsconfig.json is ignored.
tsc src/index.ts
From the documentation:
When input files are specified on the command line, tsconfig.json files are ignored.
Your npm build script should just be tsc without passing any files.
tsc