serverless-plugin-typescript
serverless-plugin-typescript copied to clipboard
Deployed package contains deleted files
I've created a repro repo to demonstrate the problem: https://github.com/tamlyn/sls-package-bug
Essentially the problem is this:
- use the
package.patternsSLS config to copy files into the package - run a command such as
sls invoke localwhich generates the.buildfolder - delete a file that would be included by the
patterns - run
sls deploy(orsls package)
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).