Typescript Watch - Cleaning Target Files on Source Deletion
See original GitHub issueCan we add a compiler option to also glob-delete a target file when the source file is removed? We run into this constantly and have to gulp clean frequently - it makes the usage of tsc -watch
pointless as we have to constantly purge the output directory.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:123
- Comments:19 (2 by maintainers)
Top Results From Across the Web
TypeScript Watch - Removing Deleted Target JS Files
What the solution involved was using file watchers to trigger deletion callback event and removing the tsc watch file from the source file...
Read more >Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
Run on two files npx eslint file1.js file2.js # Run on multiple files npx eslint ... uses when searching for target files in...
Read more >TypeScript clean build - Blogs of Raghs
At time we need to wipe off all the .js files generated by the TypeScript Compiler ( tsc ) to have a fresh...
Read more >rollup.js
Import everything from the source module as an object which exposes all the ... You can prevent files from being emitted by deleting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
This is constantly biting us during development. A file is removed - but nightwatch / some other library still picks it up and runs tests based on code that should not be there.
Last activity on this was more than 8 months ago, but I hope there is still a possibility for this to be added?
Thanks!
This functionality would also be helpful on a simple
--clean
, this is effecting us in CI and when switching between branches locally