Skip to content
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

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

Open
sheetalkamat opened this issue Jan 3, 2019 · 3 comments

Comments

@sheetalkamat
Copy link
Collaborator

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
Copy link
Collaborator Author

image

@danielrentz
Copy link

Thanks for the patch!

@Retsam
Copy link

Retsam commented Feb 15, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants