git-stack-cli 2.4.0 → 2.4.1
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.
- package/dist/js/index.js +3 -2
- package/package.json +1 -1
- package/scripts/release-npm.ts +5 -5
package/dist/js/index.js
CHANGED
|
@@ -40094,7 +40094,8 @@ function SelectCommitRangesInternal(props) {
|
|
|
40094
40094
|
let branch_prefix = "";
|
|
40095
40095
|
if (argv["branch-prefix"]) {
|
|
40096
40096
|
branch_prefix = argv["branch-prefix"];
|
|
40097
|
-
} else if (
|
|
40097
|
+
} else if (process.env.GIT_STACK_BRANCH_PREFIX) {
|
|
40098
|
+
branch_prefix = process.env.GIT_STACK_BRANCH_PREFIX;
|
|
40098
40099
|
}
|
|
40099
40100
|
return `${branch_prefix}${gs_short_id()}`;
|
|
40100
40101
|
}
|
|
@@ -45661,7 +45662,7 @@ var yargs_default = Yargs;
|
|
|
45661
45662
|
|
|
45662
45663
|
// src/command.ts
|
|
45663
45664
|
async function command2() {
|
|
45664
|
-
return yargs_default(hideBin(process.argv)).scriptName("git stack").usage("Usage: git stack [command] [options]").command("$0", "Sync commit ranges to Github", (yargs) => yargs.options(DefaultOptions)).command("fixup [commit]", "Amend staged changes to a specific commit in history", (yargs) => yargs.positional("commit", FixupOptions.commit)).command("log [args...]", "Print an abbreviated log with numbered commits, useful for git stack fixup", (yargs) => yargs.strict(false)).command("rebase", "Update local branch via rebase with latest changes from origin master branch", (yargs) => yargs).option("verbose", GlobalOptions.verbose).wrap(123).strict().version("2.4.
|
|
45665
|
+
return yargs_default(hideBin(process.argv)).scriptName("git stack").usage("Usage: git stack [command] [options]").command("$0", "Sync commit ranges to Github", (yargs) => yargs.options(DefaultOptions)).command("fixup [commit]", "Amend staged changes to a specific commit in history", (yargs) => yargs.positional("commit", FixupOptions.commit)).command("log [args...]", "Print an abbreviated log with numbered commits, useful for git stack fixup", (yargs) => yargs.strict(false)).command("rebase", "Update local branch via rebase with latest changes from origin master branch", (yargs) => yargs).option("verbose", GlobalOptions.verbose).wrap(123).strict().version("2.4.1").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`").argv;
|
|
45665
45666
|
}
|
|
45666
45667
|
var GlobalOptions = {
|
|
45667
45668
|
verbose: {
|
package/package.json
CHANGED
package/scripts/release-npm.ts
CHANGED
|
@@ -55,11 +55,6 @@ for (const filepath of package_json.files) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
process.env.GS_RELEASE_NPM = "true";
|
|
59
|
-
console.info("Publishing to NPM requires a one-time password");
|
|
60
|
-
const otp = await input("Enter OTP: ");
|
|
61
|
-
await spawn(["npm", "publish", `--otp=${otp}`]);
|
|
62
|
-
|
|
63
58
|
process.chdir(REPO_ROOT);
|
|
64
59
|
|
|
65
60
|
await spawn.sync(`git commit -a -m ${version}`);
|
|
@@ -70,6 +65,11 @@ await spawn.sync(`git push`);
|
|
|
70
65
|
await spawn.sync(`git tag -a ${version} -m ${version}`);
|
|
71
66
|
await spawn.sync(`git push origin ${version}`);
|
|
72
67
|
|
|
68
|
+
process.env.GS_RELEASE_NPM = "true";
|
|
69
|
+
console.info("Publishing to NPM requires a one-time password");
|
|
70
|
+
const otp = await input("Enter OTP: ");
|
|
71
|
+
await spawn(["npm", "publish", `--otp=${otp}`]);
|
|
72
|
+
|
|
73
73
|
console.debug();
|
|
74
74
|
console.debug("✅", "published", version);
|
|
75
75
|
console.debug();
|