Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix Yarn Berry workspace audit when skip-dev=true #248

Merged
merged 7 commits into from
Apr 13, 2022

Conversation

kyletsang
Copy link
Contributor

Fixes #216

The --all flag should always be passed so the auditor can pick up vulnerabilities in workspaces.

This PR adds tests for Yarn Classic and Yarn Berry. One hiccup I ran into was that Yarn Classic does not audit dev dependencies. This appears to be a bug in Yarn. I left comments in the test.

@quinnturner
Copy link
Member

quinnturner commented Apr 13, 2022

install-state.gz is intended gitignored. Can you add this to the .gitignore?

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

Also, for the Yarn Berry files, can you use the existing approach where we just require the single instance in ../../? That saves the repo space and some duplication!

@kyletsang
Copy link
Contributor Author

Also, for the Yarn Berry files, can you use the existing approach where we just require the single instance in ../../? That saves the repo space and some duplication!

Fixed and also cleaned up the files in the other yarn berry folders 👍

README.md Outdated Show resolved Hide resolved
@quinnturner quinnturner self-requested a review April 13, 2022 02:07
@quinnturner
Copy link
Member

Great job, thank you! I will trigger a release for this PR.

@quinnturner quinnturner merged commit b6f210f into IBM:main Apr 13, 2022
@kyletsang kyletsang deleted the yarn-workspace branch April 13, 2022 02:11
@quinnturner
Copy link
Member

Released in v6.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No results for yarn (berry) monorepo
2 participants