Skip to content

Commit df1bdda

Browse files
build-npm: fix assert message about not supported tag (#3190)
1 parent fff4339 commit df1bdda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/build-npm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ function buildPackageJSON() {
9696
assert(
9797
['alpha', 'beta', 'rc'].includes(publishTag) ||
9898
publishTag.startsWith('experimental-'),
99-
`"${publishTag}" tag is supported.`,
99+
`"${publishTag}" tag is not supported.`,
100100
);
101101

102102
assert(!packageJSON.publishConfig, 'Can not override "publishConfig".');
103-
packageJSON.publishConfig = { tag: publishTag || 'latest' };
103+
packageJSON.publishConfig = { tag: publishTag };
104104
}
105105

106106
return packageJSON;

0 commit comments

Comments
 (0)