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 --clean leaves .js.map files #26619

Closed
simonbuchan opened this issue Aug 23, 2018 · 2 comments
Closed

tsc --build --clean leaves .js.map files #26619

simonbuchan opened this issue Aug 23, 2018 · 2 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@simonbuchan
Copy link

TypeScript Version: 3.1.0-dev.20180822

Search Terms:
build clean sourcemap source maps .map

Expected behavior:

tsc --build src --clean should remove all files generated by tsc --build src.

Actual behavior:

It removes .js, .d.ts, and .d.ts.map files, but not .js.map.

Due to #25864 I'm building without outDir or rootDir, e.g. the output files are created beside the source files, if that matters.

My project structure is as described in the handbook for project references:

src/tsconfig.json // references: [a, b], files: []
src/tsconfig.base.json // composite: true, etc...
src/common/tsconfig.json // extends: ../tsconfig.base.json
src/common/some-common.ts ...
src/a/tsconfig.json // extends: ../tsconfig.base.json, references: [common]
src/a/some-a.ts ...
src/b/tsconfig.json // extends: ../tsconfig.base.json, references: [common]
src/a/some-b.ts ...
@zkhalapyan
Copy link

Seems like this bug is bag, again running tsc --build --clean leaves all files intact!

❯ ./node_modules/.bin/tsc --version
Version 3.9.7
❯ node --version
v15.2.0

@RyanCavanaugh
Copy link
Member

@zkhalapyan please open a new issue with steps to reproduce the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants