Skip to content

Commit

Permalink
Update packages/js/src/utils/minimal-publish-script.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Caleb Ukle <caleb@nrwl.io>
  • Loading branch information
nartc and barbados-clemens committed Apr 12, 2022
1 parent cbfe573 commit f03cbc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/src/utils/minimal-publish-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const [, , name, version, tag = 'next'] = process.argv;
// A simple SemVer validation to validate the version
const validVersion = /^\\d+\\.\\d+\\.\\d(-\\w+\\.\\d+)?/;
if (!version || !validVersion.test(version)) {
console.error(chalk.bold.red(\`No version provided or version did not match Semantic Versioning, expected: #.#.#-tag, got \${version}\`));
console.error(chalk.bold.red(\`No version provided or version did not match Semantic Versioning, expected: #.#.#-tag.# or #.#.#, got \${version}\`));
process.exit(1);
}
Expand Down

0 comments on commit f03cbc3

Please sign in to comment.