No results for yarn (berry) monorepo
See original GitHub issueThe audit-ci
check in a Yarn (berry) monorepo may be incomplete. To reproduce:
- Use a monorepo
- Run audit-ci to only check for production dependencies
- Notice you’ll see very few audit results
What happens (see here) for the line involved):
- When auditing only production dependencies, then the
--environment production
arguments are used - When auditing any dependency (either production or dev), then the
--all
flag is used. The-all
flag is used in yarn to specify that we want to audit all dependencies in this workspace, and not just the one in the current working dir (see here for the docs) - In other words,
audit-ci
is either- checking all (both production/development) dependencies in the complete workspace
- checking only the production dependencies of the currently focused package
It seems to me that there is a misunderstanding of the -all
argument. I’d argue we’d always want audit-ci
to audit the complete workspace, i.e. we should always include the -all
argument
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
[Bug] Workspaces not linking · Issue #839 · yarnpkg/berry
For my scenario, yarn workspaces list from the monorepo root would list foo but the same command from inside foo lists nothing.
Read more >Yarn berry workspace command not available at root level
I'm working on upgrading yarn to Yarn@3 berry. I'm not able to access "Client" package .bin scripts from monorepo root, giving me this...
Read more >Migrating our Monorepo to Yarn 2 | DoltHub Blog
We wanted React 18 to be more stable before upgrading and webpack 4 was not working with Yarn 2. Once we upgraded React...
Read more >How to migrate a monorepo to Yarn 2 : r/typescript - Reddit
If build time is a priority for you I'm not sure migrating to yarn 2 ... We migrated our monorepo from Yarn Classic...
Read more >Creating a Yarn Monorepo in 2022 - Heygrady
The tooling for workspace packages will be handled in other documents. Workspace Root: Git; Volta + Yarn Berry + NPM; Changesets · Husky ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @kyletsang, that would be great! I am still working on a mandatory side project personally this week but can do PR reviews. I started creating some test files for the Yarn workspace (hoping for Yarn Classic and Berry): https://github.com/quinnturner/audit-ci/commit/079079b1a2c6d82973b5b2b6ce7b4aa063762aad.
Released in
v6.2.0