bstack 0.0.0 → 0.2.0

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
@@ -1,14 +1,17 @@
1
1
  # bstack
2
2
 
3
- `bstack` turns a series of commits in local branch into native GitHub stacked separate pull requests.
3
+ `bstack` turns a series of commits on a local branch into native GitHub stacked pull requests.
4
4
 
5
5
  ## Install
6
6
 
7
- Requirements: Bun, Git, an authenticated GitHub CLI, and the `github/gh-stack` extension.
7
+ Requirements:
8
+
9
+ - Node.js 20+
10
+ - `gh cli` plus the `github/gh-stack` extension (authenticated)
8
11
 
9
12
  ```bash
10
13
  gh extension install github/gh-stack
11
- bun install --global bstack
14
+ npm install bstack -g
12
15
  ```
13
16
 
14
17
  ## Use
@@ -17,8 +20,8 @@ Create one commit per reviewable change, then publish the stack:
17
20
 
18
21
  ```bash
19
22
  git switch -c my-feature
20
- git commit -am "Add the model"
21
- git commit -am "Add the API"
23
+ git commit -am "feat: add the model"
24
+ git commit -am "feat: add the API"
22
25
  bstack
23
26
  ```
24
27
 
@@ -34,3 +37,21 @@ bstack checkout https://github.com/owner/repo/pull/123
34
37
  The first publish adds a stable `Bstack-Id` trailer to each commit and rewrites their hashes. The working tree must be clean. Merge commits and signed commits that need trailers are not supported.
35
38
 
36
39
  Use `--dry-run` to inspect without publishing and `--quiet` to hide progress logs.
40
+
41
+ ## Develop
42
+
43
+ Install dependencies and run the checks with pnpm:
44
+
45
+ ```bash
46
+ pnpm install
47
+ pnpm run type-check
48
+ pnpm test
49
+ pnpm run lint
50
+ ```
51
+
52
+ Build the Node.js CLI with tsdown:
53
+
54
+ ```bash
55
+ pnpm run build
56
+ node dist/bstack.js --help
57
+ ```