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

Command-line option -w- to switch watch mode off #11663

Closed
fantaclaus opened this issue Oct 15, 2016 · 2 comments
Closed

Command-line option -w- to switch watch mode off #11663

fantaclaus opened this issue Oct 15, 2016 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@fantaclaus
Copy link

TypeScript Version: 2.0.3

Please, add a command-line option -w- (or --nowatch or something similar) to override watch: true setting in tsconfig.json file.

It is needed for building a project from the command line on a build server.

@mhegazy
Copy link
Contributor

mhegazy commented Oct 15, 2016

This shoudl be covered by #10967.

On a side note, I would actually recommend the opposite. keep your tsconfig.json with no watch and call tsc --watch when needed.

@mhegazy mhegazy closed this as completed Oct 15, 2016
@mhegazy mhegazy added the Duplicate An existing issue was already created label Oct 15, 2016
@fantaclaus
Copy link
Author

@mhegazy Brilliant! Thanks for the idea! I've put "args": [ "-w" ], into tasks.json. So now it works in watch mode inside VSCode, but just compiles with no watch when started from the command line.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants