aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/monorepo-scripts/src/publish.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/monorepo-scripts/src/publish.ts b/packages/monorepo-scripts/src/publish.ts
index 0ca3ea7a1..bc580c87f 100644
--- a/packages/monorepo-scripts/src/publish.ts
+++ b/packages/monorepo-scripts/src/publish.ts
@@ -132,13 +132,13 @@ async function checkPublishRequiredSetupAsync(): Promise<boolean> {
return false;
}
- // Check NPM version is 5.X
- const result = await execAsync(`npm --version`);
+ // Check Yarn version is 1.X
+ const result = await execAsync(`yarn --version`);
const version = result.stdout;
const versionSegments = version.split('.');
const majorVersion = _.parseInt(versionSegments[0]);
- if (majorVersion < 5) {
- utils.log('You npm version must be v5.x or higher. Upgrade your npm and try again.');
+ if (majorVersion < 1) {
+ utils.log('Your yarn version must be v1.x or higher. Upgrade yarn and try again.');
return false;
}