Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Possible to works with workspaces ? #145

Open
throrin19 opened this issue Sep 13, 2023 · 0 comments
Open

Possible to works with workspaces ? #145

throrin19 opened this issue Sep 13, 2023 · 0 comments
Labels
help wanted Extra attention is needed pull-request-welcome

Comments

@throrin19
Copy link

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

@agutoli agutoli added help wanted Extra attention is needed pull-request-welcome labels Oct 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed pull-request-welcome
Projects
None yet
Development

No branches or pull requests

2 participants