Skip to content

Commit 701a936

Browse files
committed
Rename flag to --no-version-check in SEA publisher
1 parent 1e6931b commit 701a936

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/publish-sea.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ async function main() {
391391
type: 'boolean',
392392
default: false,
393393
},
394-
'skip-consistency-check': {
394+
'no-version-check': {
395395
type: 'boolean',
396396
default: false,
397397
},
@@ -428,7 +428,7 @@ Options:
428428
--platform=PLATFORM Specific platform(s) to build (can specify multiple)
429429
--version=VERSION Version to publish (default: from package.json)
430430
--dry-run Perform dry-run without publishing
431-
--skip-consistency-check Skip package version consistency validation (NOT RECOMMENDED)
431+
--no-version-check Skip package version validation (NOT RECOMMENDED)
432432
--skip-build Skip building binaries (use existing)
433433
--skip-optional Skip optional platforms (armv7, alpine)
434434
--otp=CODE npm OTP for publishing
@@ -482,20 +482,20 @@ Notes:
482482
console.log(`Publishing version: ${version}\n`)
483483

484484
// Check version consistency across all packages.
485-
if (!values['skip-consistency-check']) {
486-
console.log('📋 Package Version Consistency Check')
485+
if (!values['no-version-check']) {
486+
console.log('📋 Package Version Check')
487487
console.log('─'.repeat(60))
488488
const isConsistent = await checkVersionConsistency(version)
489489
console.log('─'.repeat(60))
490490

491491
if (!isConsistent) {
492-
console.log('\n❌ Version consistency check failed!')
492+
console.log('\n❌ Version check failed!')
493493
console.log('This is CRITICAL: All @socketbin packages must have the same version.')
494494
console.log('Fix the version mismatches before publishing.')
495495

496496
if (!values['dry-run']) {
497-
console.log('\nAborting publish to prevent version inconsistency.')
498-
console.log('Use --skip-consistency-check to bypass this check (NOT RECOMMENDED).\n')
497+
console.log('\nAborting publish to prevent version mismatch.')
498+
console.log('Use --no-version-check to bypass this check (NOT RECOMMENDED).\n')
499499
process.exitCode = 1
500500
return
501501
} else {

0 commit comments

Comments
 (0)