From 0bd2c2bb3d93adcfebdff6bbc3ad3d338b79c42a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 7 Nov 2017 15:03:08 +0000 Subject: [PATCH] Fix error reporting in release script --- scripts/release/publish-commands/publish-to-npm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release/publish-commands/publish-to-npm.js b/scripts/release/publish-commands/publish-to-npm.js index 34237765f7..1c5e183dca 100644 --- a/scripts/release/publish-commands/publish-to-npm.js +++ b/scripts/release/publish-commands/publish-to-npm.js @@ -39,8 +39,8 @@ const push = async ({cwd, dry, version}) => { // To better handle the case of pre-release versions. if (remoteVersion !== packageVersion) { throw Error( - chalk`Publised version {yellow.bold ${packageVersion}} for ` + - `{bold ${project}} but NPM shows {yellow.bold ${remoteVersion}}` + chalk`Published version {yellow.bold ${packageVersion}} for ` + + chalk`{bold ${project}} but NPM shows {yellow.bold ${remoteVersion}}` ); }