This demonstrates an issue with the yarn packager in serverless-esbuild, where github-referenced dependencies are not included in the packaged sls node_modules. floydspace/serverless-esbuild#477
- Run
yarn install - Note that
node_modules/@identity.com/package.jsonimports a @metacask lib using a github reference:
"@metacask/kyc-token-client": "git+ssh://[email protected]/mcask/kyc-token-client.git#0.3.2",
- Run
yarn sls package - Unzip the function
.serverless/test.zip - Note that the packages node_modules has no
@metacask/kyc-token-clientdependency.