Skip to content

Commit

Permalink
build-npm: fix assert message about not supported tag (#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 20, 2021
1 parent fff4339 commit df1bdda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/build-npm.js
Expand Up @@ -96,11 +96,11 @@ function buildPackageJSON() {
assert(
['alpha', 'beta', 'rc'].includes(publishTag) ||
publishTag.startsWith('experimental-'),
`"${publishTag}" tag is supported.`,
`"${publishTag}" tag is not supported.`,
);

assert(!packageJSON.publishConfig, 'Can not override "publishConfig".');
packageJSON.publishConfig = { tag: publishTag || 'latest' };
packageJSON.publishConfig = { tag: publishTag };
}

return packageJSON;
Expand Down

0 comments on commit df1bdda

Please sign in to comment.