aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-24 09:43:44 +0800
committerFabio Berger <me@fabioberger.com>2018-04-24 09:43:44 +0800
commitffd9b791003f4718a0dcc469e9806450c73200aa (patch)
treec2f8230700463e182c1c76c4eacc938174589ebd /packages
parent04c07d9006ad1a66044e6d32009d23d552a5b099 (diff)
downloaddexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar.gz
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar.bz2
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar.lz
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar.xz
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.tar.zst
dexon-sol-tools-ffd9b791003f4718a0dcc469e9806450c73200aa.zip
Check for Yarn instead of npm
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;
}