export node_modules in yarn berry for aws lambda layers

Viewed 184

currently we're using multiple yarn 1.x projects to deploy code to aws.

to export the dependencies for lambda-layers we're currently using
yarn install --production --modules-folder layer/nodejs/node_modules

now we'd like to migrate to yarn berry to utilise local package references, however the --modules-folder option does not exist anymore.

Is there a way to archive the same thing with yarn berry?

for context, this is my .yarnrc file:

nmHoistingLimits: workspaces

nodeLinker: node-modules

plugins:
  - path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
    spec: "@yarnpkg/plugin-typescript"
  - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
    spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-berry.js

0 Answers
Related