Package Individually Doesn't Work Properly After v1.22.1
See original GitHub issueAfter v1.22.1, package individually seem to not work properly.
This repo can be used to replicate this: https://github.com/randalvance/serverless-typescript-reference
First change the version of serverless-esbuild
in package.json
to 1.22.0
.
Run npm run build
. Inside .serverless
folder, check the individual function’s zip file content and notice that only the code for that single function is included.
Update to version 1.22.1
, do an npm i
and npm run build
.
Inside .serverless
folder, check the individual function’s zip file content:
Expected Behaviour The individual zip files should only contain the code for a single function.
Actual Behaviour The individual zip files contain code for all the other functions.
This bug seems to still be present in v1.23.0.
OS: Windows 10 NodeJS Version: 14.17.5
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top GitHub Comments
Yeah, I replicated it on Windows but could not on OSX. I’ll fix it during the week if I have time.
Thanks @samchungy, verified working now.