Thread with 1 post

jump to expanded post

Note to self/TIL: rootDir and rootDirs in tsconfig.compilerOptions. tsc will compile things and create out
put directory structure that matches the sources, starting from the top-level file it found. E.g. if you had a `src/core/app/app.js` and then the r
est of the files under that, your compiled output would "skip" the `core/app` part. But you can tell tsconfig that you have a `rootDir` (or `rootDirs` for multiple virtual dirs) that rescope that output. Important to remember, this only affects the output, not the sources.\n And that is how you resolve a stupid god damn nx monorepo/Angular/lerna problem. #til #tsconfig #angular

Open thread at this post