project-references-demo
project-references-demo copied to clipboard
Need to add files: [] to tsproject and create baseconfig with compiler options to extend from
From Microsoft/TypeScript#28875
danielrentz commented 29 days ago TypeScript Version: 3.2.1
I have tried https://github.com/RyanCavanaugh/project-references-demo
and tsc -b tsproject.json emits the output files into the /lib directory as expected, but additionally generates (some of) these files again next to the *.ts source files which seems unexpected.
Example session:
> git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
> tsc --build tsproject.json
> git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
animals/animal.d.ts
animals/animal.js
animals/dog.d.ts
animals/dog.js
zoo/zoo.d.ts
zoo/zoo.js
nothing added to commit but untracked files present (use "git add" to track)

Thanks for the patch!
Is it necessary for tsproject.json to inherit from tsconfig-base.json? If that config isn't directly controlling any files (due to files: []) it seems like compiler options are a moot point.