serverless-layers icon indicating copy to clipboard operation
serverless-layers copied to clipboard

Possible to works with workspaces ?

Open throrin19 opened this issue 9 months ago • 0 comments

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

throrin19 avatar Sep 13 '23 12:09 throrin19