azz / get-monorepo-packages

Get a list of packages from a monorepo
MIT License
19 stars 7 forks source link

Latest lerna v7 does not use useWorkspaces flag #11

Open cmdcolin opened 1 year ago

cmdcolin commented 1 year ago

I noticed the eslint-plugin-import started failing after I upgraded to lerna 7 which removes the useWorkspaces flag

This package I think detects the useWorkspaces flag to find packages though

I can keep the useWorkspaces flag in my lerna.json but note that lerna has a "lerna.json fixer script" that removes this flag

cmdcolin commented 1 year ago

Actually cannot even keep the useWorkspaces flag without getting some error, lerna errors out with message

$ lerna run useDist --scope "@jbrowse/plugin*" --scope @jbrowse/text-indexing
lerna notice cli v7.1.1
lerna ERR! ECONFIGWORKSPACES The "useWorkspaces" option has been removed. By default lerna will resolve your packages using your package manager's workspaces configuration. Alternatively, you can manually provide a list of package globs to be used instead via the "packages" option in lerna.json.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Process completed with exit code 1.