project-references-demo icon indicating copy to clipboard operation
project-references-demo copied to clipboard

Need to add files: [] to tsproject and create baseconfig with compiler options to extend from

Open sheetalkamat opened this issue 6 years ago • 3 comments

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)

sheetalkamat avatar Jan 03 '19 20:01 sheetalkamat

image

sheetalkamat avatar Jan 03 '19 20:01 sheetalkamat

Thanks for the patch!

danielrentz avatar Jan 04 '19 21:01 danielrentz

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.

Retsam avatar Feb 15 '19 20:02 Retsam