-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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(js): fix yarn setup to work with yarn3 #17716
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit a7ad5b4. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} catch (e) { | ||
return () => {}; | ||
} | ||
const yarnV1 = major(execSync('yarn --version').toString().trim()) === 1; |
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.
Can we call this isYarnV1
instead or something similar?
|
||
if (!yarnV1) { | ||
execSync( | ||
`yarn config set unsafeHttpWhitelist --json '["localhost"]'` + |
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.
This will overwrite the existing value and we don't have a stored value to set it back to, potentially breaking folks.
: '' | ||
); | ||
logger.info( | ||
`Whitelist http://localhost:${options.port}/ as an unsafe http server` |
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.
`Whitelist http://localhost:${options.port}/ as an unsafe http server` | |
`Whitelisted http://localhost:${options.port}/ as an unsafe http server` |
c39b9f4
to
0102739
Compare
0102739
to
a7ad5b4
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
An error is thrown if using the
verdaccio
executor with yarn 3Expected Behavior
The verdaccio executor works with yarn 3
Related Issue(s)
Fixes #