-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
extends
property in tsconfig.json
files
`tsc` supports `tsconfig.json` files having an `extends` property, which references another JSON file that can contain additional properties that will be used. Update `parseOutput.mts` to output the list of config files as part of the `dyndep` file so we will re-typecheck/transpile whenever the config file is updated. Note that is is not perfect - it will break if you change any option that controls the number or paths of the output files, or you add/remove additional files in `extends`. However, if you are changing warning levels or anything to do with typechecking it should work well. Additionally, use the parser inside `typescript` instead of `JSON.parse` as the format is `jsonc` (JSON with comments) and not pure JSON.
- Loading branch information
1 parent
82e8745
commit 0cebc1e
Showing
4 changed files
with
259 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.