ncc
ncc copied to clipboard
add `--tsconfig-path` option for CLI & support `extends` property in `tsconfig.json`
Overview
Hi, there! I've made a PR to add a new CLI option and resolve potential problems. If there is something wrong or missing, feel free to point it out. Thank you.
Changes
- add
--tsconfig-path
to specify path totsconfig.json
file for CLI option- if path to
tsconfig.json
is passed by this option, ncc sees that path directly, or if not, ncc resolve path totsconfig.json
as before
- if path to
- support
extends
property intsconfig.json
- ~~use officially provided API by TypeScript to resolve and parse
compilerOptions
&extends
property~~ - ~~add param-case to convert values at
jsx
option to kebab-case~~ - use tsconfck to parse
tsconfig.json
options.
- ~~use officially provided API by TypeScript to resolve and parse
Related
- resolve #457
This is a great feature, thanks nokazn! :clap:
I hope your work will be merged soon as ncc TS support is incomplete without it. Unfortunately, since ncc lacks preinstall
script it's a hassle to use the fork in the meantime.
Why is still on hold? Thanks for the PR
Hello, when can we expect this to PR to be merged?
Very interested in this addition. Is there anything I can do to help get this across the finish line?
Hello, what's new about this? This is very embarrassing to not be able to set the tsconfig file to use. :/ For example, the NestJs framework standard is to name the tsconfig file tsconfig.build.json for the code only, extending the tsconfig.json file used for code and test. Without this feature, we cannot respect the NestJs standard. :( Regards.
any update?