question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No results for yarn (berry) monorepo

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
quinnturnercommented, Apr 12, 2022

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.

0reactions
quinnturnercommented, Apr 13, 2022

Released in v6.2.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found