@nimbus-ds/scripts 1.8.0-rc.7 → 1.8.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -51,8 +51,8 @@ For more details, see scripts/README.md`);
|
|
|
51
51
|
const version = args[1] || "";
|
|
52
52
|
const otpArg = process.argv.find((arg) => arg.startsWith("--otp="));
|
|
53
53
|
const otp = otpArg ? otpArg.split("=")[1] : undefined;
|
|
54
|
-
const skipBuild =
|
|
55
|
-
const showHelp =
|
|
54
|
+
const skipBuild = argv.includes("--skip-build");
|
|
55
|
+
const showHelp = argv.includes("--help") || argv.includes("-h");
|
|
56
56
|
// Validate OTP parameter
|
|
57
57
|
if (otp && (otp.length !== 6 || !/^\d{6}$/.test(otp))) {
|
|
58
58
|
throw new Error("\n❌ Invalid OTP format. Please provide exactly 6 digits (e.g., --otp=123456)");
|