git-stack-cli 2.1.2 → 2.1.4

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/README.md CHANGED
@@ -126,8 +126,10 @@ Managing even a few stacked diffs requires a relatively strong knowledge of `git
126
126
  Ensure `node --version` is the same across both projects you are using to test the `git-stack` cli
127
127
 
128
128
  ```bash
129
+ corepack enable
130
+
129
131
  git submodule update --init --recursive
130
- npm i
132
+ pnpm i
131
133
  pnpm run dev
132
134
  pnpm link --global
133
135
 
package/dist/js/index.js CHANGED
@@ -28100,6 +28100,7 @@ var require_last = __commonJS((exports, module) => {
28100
28100
  // src/index.tsx
28101
28101
  var React55 = __toESM(require_react(), 1);
28102
28102
  import fs14 from "node:fs/promises";
28103
+ import path10 from "node:path";
28103
28104
 
28104
28105
  // node_modules/.pnpm/ink-cjs@4.4.1_@types+react@18.2.33_react-devtools-core@4.19.1_react@18.2.0/node_modules/ink-cjs/build/render.js
28105
28106
  import { Stream } from "node:stream";
@@ -37812,7 +37813,7 @@ function Url(props) {
37812
37813
  import fs7 from "node:fs";
37813
37814
  import path4 from "node:path";
37814
37815
  function is_command_available(command) {
37815
- const PATH = "/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/.rvm/gems/ruby-2.6.3/bin:/Users/noah/.rvm/gems/ruby-2.6.3@global/bin:/Users/noah/.rvm/rubies/ruby-2.6.3/bin:/Users/noah/Library/pnpm:/Users/noah/.bun/bin:/Users/noah/Library/Caches/fnm_multishells/45565_1737429645385/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/Users/noah/.dotfiles/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/noah/.cargo/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/noah/google-cloud-sdk/bin:/Users/noah/.yarn/bin:/Users/noah/.fastlane/bin:/usr/local/opt/fzf/bin:/Users/noah/google-cloud-sdk/bin:/Users/noah/.yarn/bin:/Users/noah/.fastlane/bin:/Users/noah/.rvm/bin";
37816
+ const PATH = "/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/github/git-stack-cli/node_modules/.bin:/Users/noah/.cache/node/corepack/v1/pnpm/9.15.4/dist/node-gyp-bin:/Users/noah/.rvm/gems/ruby-3.0.0/bin:/Users/noah/.rvm/gems/ruby-3.0.0@global/bin:/Users/noah/.rvm/rubies/ruby-3.0.0/bin:/Users/noah/Library/pnpm:/Users/noah/.bun/bin:/Users/noah/Library/Caches/fnm_multishells/99719_1742855928667/bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/local/sbin:/Users/noah/.dotfiles/bin:/usr/local/sbin:/usr/local/bin:/Users/noah/.openai/bin:/Users/noah/.virtualenvs/openai/bin:/Users/noah/.pyenv/shims:/Users/noah/.pyenv/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/noah/.cargo/bin:/Users/noah/Applications/iTerm.app/Contents/Resources/utilities:/Users/noah/.openai/bin:/Users/noah/google-cloud-sdk/bin:/Users/noah/.yarn/bin:/Users/noah/.fastlane/bin:/usr/local/go/bin:/usr/local/opt/fzf/bin:/Users/noah/google-cloud-sdk/bin:/Users/noah/.yarn/bin:/Users/noah/.fastlane/bin:/usr/local/go/bin:/Users/noah/.rvm/bin";
37816
37817
  invariant(PATH, "PATH env must exist");
37817
37818
  const path_list = PATH.split(path4.delimiter);
37818
37819
  for (const dir of path_list) {
@@ -40017,8 +40018,7 @@ function SelectCommitRangesInternal(props) {
40017
40018
  let branch_prefix = "";
40018
40019
  if (argv["branch-prefix"]) {
40019
40020
  branch_prefix = argv["branch-prefix"];
40020
- } else if (process.env.GIT_STACK_BRANCH_PREFIX) {
40021
- branch_prefix = process.env.GIT_STACK_BRANCH_PREFIX;
40021
+ } else if ("") {
40022
40022
  }
40023
40023
  return `${branch_prefix}${gs_short_id()}`;
40024
40024
  }
@@ -45640,7 +45640,7 @@ var yargs_default = Yargs;
45640
45640
 
45641
45641
  // src/command.ts
45642
45642
  async function command2() {
45643
- return yargs_default(hideBin(process.argv)).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.1.2").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`").argv;
45643
+ return yargs_default(hideBin(process.argv)).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.1.4").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`").argv;
45644
45644
  }
45645
45645
  var GlobalOptions = {
45646
45646
  verbose: {
@@ -45760,7 +45760,11 @@ var FixupOptions = {
45760
45760
  state.argv = argv;
45761
45761
  state.cwd = process.cwd();
45762
45762
  });
45763
- Store.getState().actions.debug(pretty_json(argv));
45763
+ const actions = Store.getState().actions;
45764
+ actions.debug(pretty_json(argv));
45765
+ const PATH = process.env["PATH"];
45766
+ const PATH_LIST = pretty_json(PATH.split(path10.delimiter));
45767
+ actions.debug(`process.env.PATH ${PATH_LIST}`);
45764
45768
  await ink.waitUntilExit();
45765
45769
  } catch (err) {
45766
45770
  console.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-stack-cli",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "",
5
5
  "author": "magus",
6
6
  "license": "MIT",
@@ -1,5 +1,11 @@
1
1
  export namespace pretty_json {
2
- export type JSONValue = null | number | string | boolean | { [key: string]: JSONValue };
2
+ export type JSONValue =
3
+ | null
4
+ | number
5
+ | string
6
+ | boolean
7
+ | { [key: string]: JSONValue }
8
+ | Array<JSONValue>;
3
9
  }
4
10
 
5
11
  export function pretty_json<T extends pretty_json.JSONValue>(input: T): string {
package/src/index.tsx CHANGED
@@ -5,6 +5,7 @@
5
5
  import * as React from "react";
6
6
 
7
7
  import fs from "node:fs/promises";
8
+ import path from "node:path";
8
9
 
9
10
  import * as Ink from "ink-cjs";
10
11
 
@@ -56,7 +57,13 @@ import { pretty_json } from "~/core/pretty_json";
56
57
  state.cwd = process.cwd();
57
58
  });
58
59
 
59
- Store.getState().actions.debug(pretty_json(argv as any));
60
+ const actions = Store.getState().actions;
61
+
62
+ actions.debug(pretty_json(argv as any));
63
+
64
+ const PATH = process.env["PATH"];
65
+ const PATH_LIST = pretty_json(PATH.split(path.delimiter));
66
+ actions.debug(`process.env.PATH ${PATH_LIST}`);
60
67
 
61
68
  await ink.waitUntilExit();
62
69