-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom tsconfig file #299
Comments
For future references I leave this here, it seems like this line needs to be adapted to support a custom tsconfig: |
It looks like having a configuration What's your usecase? Mine is to use |
I'm in a similar boat. I would love to use oclif in a monorepo, but without support for either custom tsconfig paths or without respecting |
This addresses both oclif/oclif#299 and oclif/oclif#488 `loadTSConfig()` in `src/ts-node.ts` was not properly resolving extended configuration files, because while `parseConfigFileTextToJson` will load and parse a given `tsconfig.json` file, it does not merge compilerOptions from configs specified in the `extends` option. This implementation is based on the solutions suggested in microsoft/TypeScript#5276 and https://stackoverflow.com/questions/53804566/how-to-get-compileroptions-from-tsconfig-json which rely on Typescript's utilities for loading and parsing `tsconfig.json` files. Specifically, by adding a call to `parseJsonConfigFileContent()`, the merged compilerOptions will be resolved as expected. Additionally, this adds support for user-defined tsconfig files through the `tsConfig` option under `oclif` key in their `package.json`.
I would like to get this into oclif/core instead. Thoughts? |
@mdonnalley It would be nice to include some context/description on why the issue is being closed (if it was completed, then when/where it was completed; if it's 'not planned' then more of an explanation of why it's not going to happen). This current process of 'close a huge pile of issues' with no context is generally considered pretty 'hostile'/'disrespectful' (for lack of a better term) to open source/collaboration/etc. |
oclif
has a hard requirement ontsconfig.json
.I should be able to specify the name of my
tsconfig.json
, & it's path (ideally), i.eThe text was updated successfully, but these errors were encountered: