Skip to content

Commit

Permalink
fix: remove condition for yarn classic when bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Nov 6, 2023
1 parent c565b3f commit bc8aaaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ const YARN_VERSION = '3.6.4';
const bumpYarnVersion = async (silent: boolean, root: string) => {
try {
let yarnVersion = semver.parse(getYarnVersionIfAvailable());
if (yarnVersion && semver.major(yarnVersion) === 1) {

if (yarnVersion) {
await executeCommand('yarn', ['set', 'version', YARN_VERSION], {
root,
silent,
Expand Down

0 comments on commit bc8aaaa

Please sign in to comment.