serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
784 stars 224 forks source link

Deployed package contains deleted files #275

Open tamlyn opened 2 years ago

tamlyn commented 2 years ago

I've created a repro repo to demonstrate the problem: https://github.com/tamlyn/sls-package-bug

Essentially the problem is this:

Then the deleted file is included in the package and deployed, because it was incorrectly cached in the .build folder.

This caused some havoc when a migration from a feature branch was cached like this in .build then accidentally deployed and run on main (thankfully not on production).