Skip to content

Commit

Permalink
use semver checker including build
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Feb 19, 2025
1 parent 197dc58 commit 1a0ba7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/maker/wix/src/MakerWix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default class MakerWix extends MakerBase<MakerWixConfig> {
await this.ensureDirectory(outPath);

const { version } = packageJSON;
const parsed = semver.prerelease(version);
if (Array.isArray(parsed) && parsed.length > 0) {
const parsed = semver.parse(version);
if ((Array.isArray(parsed?.prerelease) && parsed.prerelease.length > 0) || (Array.isArray(parsed?.build) && parsed.build.length > 0)) {
console.warn(
logSymbols.warning,
chalk.yellow(
Expand Down

0 comments on commit 1a0ba7d

Please sign in to comment.