Skip to content

Commit

Permalink
feat: update yarn to 4.5.3 (#4439)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric authored Dec 12, 2024
1 parent ea22b28 commit ce9f1f8
Show file tree
Hide file tree
Showing 10 changed files with 16,896 additions and 17,143 deletions.
363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.4.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.3.cjs

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@ packageExtensions:
peerDependencies:
react-dom: ^16.14.0

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.6.4.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"apollo-link@^1.0.0": "patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch",
"@material/base@^14.0.0": "patch:@material/base@npm%3A14.0.0#./.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch"
},
"packageManager": "yarn@3.6.4",
"packageManager": "yarn@4.5.3",
"dependencies": {
"@types/hoist-non-react-statics": "^3.3.5"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ const currentNodeVersion = process.versions.node;

try {
const { stdout } = await execa("yarn", ["--version"]);
if (!semver.satisfies(stdout, ">=3")) {
console.error(chalk.red(`"@webiny/cli" requires yarn 3 or 4!`));
if (!semver.satisfies(stdout, "=4")) {
console.error(chalk.red(`"@webiny/cli" requires yarn 4!`));
process.exit(1);
}
} catch (err) {
console.error(chalk.red(`"@webiny/cli" requires yarn 3 or 4!`));
console.error(chalk.red(`"@webiny/cli" requires yarn 4!`));
console.log(
`Run ${chalk.blue("yarn set version berry")} to install a compatible version of yarn.`
`Run ${chalk.blue("yarn set version 4.5.3")} to install a compatible version of yarn.`
);
process.exit(1);
}
Expand Down
874 changes: 0 additions & 874 deletions packages/create-webiny-project/utils/binaries/yarn-3.6.4.cjs

This file was deleted.

934 changes: 934 additions & 0 deletions packages/create-webiny-project/utils/binaries/yarn-4.5.3.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/create-webiny-project/utils/createProject.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module.exports = async function createProject({
// Setup yarn
title: "Setup Yarn",
task: async () => {
const yarnVersion = "3.6.4";
const yarnVersion = "4.5.3";
const yarnFile = `yarn-${yarnVersion}.cjs`;
const yarnPath = `.yarn`;
const yarnReleasesPath = path.join(yarnPath, "releases");
Expand Down
Loading

0 comments on commit ce9f1f8

Please sign in to comment.