beforeyoubid / serverless-esbuild-layers

Serverless plugin to support externalising node modules onto Lambda layers when using esbuild
MIT License
4 stars 3 forks source link

Delete the content of my layer #18

Open lxandrexl opened 11 months ago

lxandrexl commented 11 months ago

Hello, I have a project with serverless framework + typescript using layers. I use the serverless-esbuild library but due to the need to reduce the code I implemented layers because esbuild seems not to support layers I opted for this library, when following the steps the only thing it does is delete the content of my package.json and the node_modules. Project structure: -_layers --base ---nodejs ----package.json ----node_modules -serverless.yml -package.json -src -tsconfig.json

serverless file:

service: api-backend frameworkVersion: "3"

package: excludeDevDependencies: true individually: true

plugins:

layers: BasicDependenciesNodeModules: path: _layers/base description: "Base dependencies" compatibleRuntimes:

Am I doing something wrong?

rairulyle commented 5 months ago

I am also encountering the same issue. This does not happen when I don't use esbuild-layers

image