serverless-layers
serverless-layers copied to clipboard
Possible to works with workspaces ?
Hi,
Thanks for your great works.
I try to use your plugin but in a monorepo architecture using npm workspaces and nx. The problem is, If I try to use it now, serverless-layers can't see some of package.json dependencies are in the workspace and I have a 404 error installing this.
This is my project structure :
├── libs # Library packages
│ ├── errors # Errors library
│ ├── local-plugins # NX local generators and executors
│ └── ...
├── serverless # Serverless environments settings
│ └── serverless.staging.ts # staging settings
├── stacks # Modules packages
│ ├── users
│ └── ...
├── .nvmrc # Current node version, used by NVM
├── nx.json # NX configuration
├── packages.json
├── packages-lock.json
├── serverless.base.ts # Base serverless config
├── tsconfig.base.ts # Base typescript config
└── vitest.config.ts # Base Vitest config
If I try to build the users
stack, and I have a dependenc of libs/errors
in it, I want to use the existing package in libs
directory, not install from npm server.
This plugin works with workspaces or not ?
Thanks in advance