-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat(yarn): add support for Yarn 4 #43
base: master
Are you sure you want to change the base?
Conversation
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" | ||
- path: .yarn/plugins/@yarnpkg/plugin-constraints.cjs | ||
spec: "@yarnpkg/plugin-constraints" | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these plugins are now part of yarn itself.
all = Option.Boolean('-A,--all', false); | ||
|
||
recursive = Option.Boolean('-R,--recursive', false); | ||
|
||
worktree = Option.Boolean('-W,--worktree', false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least one of these is now required for yarn workspaces foreach
const manifestDir = ppath.join(cwd, toFilename('manifests')); | ||
const packDir = ppath.join(cwd, toFilename('packs')); | ||
const manifestDir = ppath.join(cwd, 'manifests'); | ||
const packDir = ppath.join(cwd, 'packs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toFilename
was removed but not mentioned in the changelog. The recommendation is to cast to Filename
instead where needed.
I did some of the recommended migrations from the Yarn 4 release notes, plus a few code changes I had to figure out.
I tested only the
changed
plugin, so unfortunately I can't guarantee that the others are working as-is.