Skip to content

Commit 97be392

Browse files
committed
fixup! fix(package-manager): require Yarn 4
1 parent 119a634 commit 97be392

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

scripts/package-manager/src/use-yarn-please.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function checkPackageManager() {
2626

2727
const yarnInfo = detectYarnInstallation();
2828

29-
if (!yarnInfo.exists || !isSupportedYarnVersion(yarnInfo.version)) {
29+
if (!yarnInfo.exists) {
3030
console.log(Strings.installYarn);
3131
process.exit(1);
3232
}
@@ -47,10 +47,4 @@ function detectYarnInstallation() {
4747
return { exists: yarnResult.status === 0, version: yarnResult.stdout };
4848
}
4949

50-
/** @param {string} version */
51-
function isSupportedYarnVersion(version) {
52-
return Number.parseInt(version, 10) === 4;
53-
}
54-
5550
exports.checkPackageManager = checkPackageManager;
56-
exports.isSupportedYarnVersion = isSupportedYarnVersion;

scripts/package-manager/src/use-yarn-please.spec.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)