-
Notifications
You must be signed in to change notification settings - Fork 99
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
Deleting a file doesn't delete its js output #125
Comments
Do we have any hooks that would even conceivably let us solve this? Or should we tackle it via documentation? |
If the file is manually deleted, then there's no way we can delete the .js automatically. |
Just to confirm, this is specifically for incremental rebuilds? The next time a fresh build is started the output will be gone? We could try nuking the output directory when a new build starts, but I'm not sure we can do that in a non-race-conditiony way. |
I think what is meant here is, if a .ts file is manually deleted and it's generated .js remains. I don't think we can delete such a file. |
@dfreeman have any of our changes to our build pipeline made this more viable? 🤔 If not, I’m thinking we should be able to solve it once we move to the Babel 7 implementation? |
Right now tsc doesn't clean up the output for removed files during incremental rebuilds, and we're essentially just symlinking its output back into the Broccoli flow. We could use |
It also seems like even making a JS file instead doesn't solve the deleted file either. |
See also #186, which is essentially the same thing but expanded to cover renames. (I'm closing this in favor of that.) Still seems likely that Babel 7 landing is what will finally fix that. |
If you delete a typescript source file, its compiled js will still be there, potentially changing the app's behavior
The text was updated successfully, but these errors were encountered: