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

Flag --emitDeclarationOnly not working with tsc --build #47406

Closed
frags51 opened this issue Jan 12, 2022 · 3 comments
Closed

Flag --emitDeclarationOnly not working with tsc --build #47406

frags51 opened this issue Jan 12, 2022 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@frags51
Copy link

frags51 commented Jan 12, 2022

Bug Report

We have a project with references (composite = true). I want to watch over the project and just emit declarations files and no JS. --emitDeclarationOnly is mentioned as compiler options in the TS CLI doc, but it does not seem to be working with --build:

error TS5072: Unknown build option '--emitDeclarationOnly'. Since it is mentioned as compiler options, I am assuming this is unexpected behavior. VS Code is able to provide us with type checks - does it generate JS for all files?

🔎 Search Terms

tsc build noemit

🕗 Version & Regression Information

TS version 3.9

Actual behavior

tsc --build --watch --emitDeclarationOnly does not work.

🙂 Expected behavior

tsc --build --watch --emitDeclarationOnly just emits declaration files.

@MartinJohns
Copy link
Contributor

Duplicate of #25613.

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Jan 12, 2022
@redhillking
Copy link

@

@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

5 participants