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

tsc --build emits into outDir AND next to source files #28875

Closed
danielrentz opened this issue Dec 6, 2018 · 4 comments
Closed

tsc --build emits into outDir AND next to source files #28875

danielrentz opened this issue Dec 6, 2018 · 4 comments
Assignees
Labels
Bug A bug in TypeScript Docs The issue relates to how you learn TypeScript Good First Issue Well scoped, documented and has the green light Help Wanted You can do this

Comments

@danielrentz
Copy link

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 sheetalkamat added Bug A bug in TypeScript and removed Bug A bug in TypeScript labels Dec 6, 2018
@sheetalkamat
Copy link
Member

I think in the demo projects we need to add

"files": [],

@weswigham weswigham added Bug A bug in TypeScript Docs The issue relates to how you learn TypeScript labels Dec 6, 2018
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 3.3 milestone Dec 8, 2018
@DanielRosenwasser DanielRosenwasser added Help Wanted You can do this Good First Issue Well scoped, documented and has the green light labels Dec 8, 2018
@danielrentz
Copy link
Author

I think in the demo projects we need to add

"files": [],

That leads to generating the embedded files only, but not the lib directory. :)

@sheetalkamat
Copy link
Member

Need to have tsconfig-base that contains extending compiler options apart from this. Since @RyanCavanaugh is oof and I don't have permission to push changes to that branch, we will have to wait for him to fix this. Moving this issue to the demo repo

@sheetalkamat
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Docs The issue relates to how you learn TypeScript Good First Issue Well scoped, documented and has the green light Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

4 participants