You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PackageA depends on sharedModules/packageD and packageB
packageB depends on packageC
packageC depends on sharedModules
As of now I am using npm (not yarn). Okay with having to change it to yarn if required for lerna to work but prefer not to.
What configurations do I need to make in serverless-jetpack for this exactly? I see it is supported but not clear on what needs to be done to achieve this.
The text was updated successfully, but these errors were encountered:
Lerna is fully supported, and we've used Jetpack in many projects. Just make sure to have everything installed so that package*/**/*.js files can find where the installed modules are (via symlinks, root node_modules, package node_modules, etc.).
We have test fixtures specifically covering Lerna + monorepo on npm and yarn:
(Note that serverless.yml reads in serverless.js variables so just expand those and replace ../../../plugins/wrapper in plugins: with serverless-jetpack since it's just referencing this source).
Jetpack works in both "normal/legacy" mode and tracing mode. In normal mode, just make sure to read the docs about the various options most notably base and maybe roots.
The one thing open with monorepo support is preserving symlinks (see #142 ) wherein normally if you have something like packageA/node_modules/packageB <a symlink> it gets packaged as packageA/node_modules/packageB <copies all the real files>, but that's more of niche use case if you're shipping a monopackage for several lambdas to keep the size down.
Thanks for your response. @ryan-roemer My understanding is that in lerna we specify dependencies by adding them to devDependencies. Where is that happening here?
My project structure looks like the following:
Requirement:
PackageA depends on sharedModules/packageD and packageB
packageB depends on packageC
packageC depends on sharedModules
As of now I am using npm (not yarn). Okay with having to change it to yarn if required for lerna to work but prefer not to.
What configurations do I need to make in serverless-jetpack for this exactly? I see it is supported but not clear on what needs to be done to achieve this.
The text was updated successfully, but these errors were encountered: