TS@next: with a tsconfig.json like
"outDir": "built/",
// rootDirs for resolution of relative imports
"rootDirs": [
"src", // for authored sources
"codegen" // for generated code
],
and src/a.ts and codegen/a_gen.ts I end up with
built/src/a.js and built/codegen/a_gen.js.
I want an output structure that collapses the trees
built/a.js and built/a_gen.js
It seems like --rootDir might work, but
- try
rootDir: src -> error TS6059 because all sources are expected to be under rootDir
- try
rootDir: . -> no change in behavior
I would like some combination of rootDir and rootDirs that flattens the output tree.
cc @robwormald @tbosch
TS@next: with a
tsconfig.jsonlikeand
src/a.tsandcodegen/a_gen.tsI end up withbuilt/src/a.jsandbuilt/codegen/a_gen.js.I want an output structure that collapses the trees
built/a.jsandbuilt/a_gen.jsIt seems like
--rootDirmight work, butrootDir: src-> error TS6059 because all sources are expected to be underrootDirrootDir: .-> no change in behaviorI would like some combination of
rootDirandrootDirsthat flattens the output tree.cc @robwormald @tbosch