bunli 0.8.0 → 0.8.2
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 +11 -0
- package/dist/cli.js +94 -90
- package/dist/commands/release.d.ts +2 -1
- package/dist/utils/release-state.d.ts +53 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -175,6 +175,9 @@ bunli release --version 2.0.0
|
|
|
175
175
|
# Dry run
|
|
176
176
|
bunli release --dry
|
|
177
177
|
|
|
178
|
+
# Ignore unfinished release state and start fresh
|
|
179
|
+
bunli release --resume=false
|
|
180
|
+
|
|
178
181
|
# Disable npm publish explicitly
|
|
179
182
|
bunli release --npm=false
|
|
180
183
|
|
|
@@ -187,6 +190,7 @@ Release options:
|
|
|
187
190
|
- `--tag, -t` - Git tag format
|
|
188
191
|
- `--npm` - Publish to npm (`--npm=false` to disable)
|
|
189
192
|
- `--github` - Create GitHub release (`--github=true` to enable)
|
|
193
|
+
- `--resume` - Resume unfinished release state (`--resume=false` to start fresh)
|
|
190
194
|
- `--dry, -d` - Dry run (runs npm publish with `--dry-run` when npm publish is enabled)
|
|
191
195
|
- `--all` - Workspace release mode (currently not implemented; exits with error)
|
|
192
196
|
|
|
@@ -194,6 +198,13 @@ Note: `bunli release` supports npm package release flows, including binary packa
|
|
|
194
198
|
(`optionalDependencies` + shim launcher). For standalone GitHub release assets, checksums, and Homebrew automation,
|
|
195
199
|
use the `bunli-releaser` GitHub Action.
|
|
196
200
|
|
|
201
|
+
Resume behavior notes:
|
|
202
|
+
- On failed non-dry runs, Bunli writes checkpoint state to `.bunli/release-state.json`.
|
|
203
|
+
- Next `bunli release` auto-resumes from that state (with an interactive prompt in TTY shells).
|
|
204
|
+
- Side-effectful steps (git tag/push, npm publish, GitHub release) are probed and skipped when already complete.
|
|
205
|
+
- Successful release clears `.bunli/release-state.json`.
|
|
206
|
+
- `--no-resume` is unsupported; use `--resume=false`.
|
|
207
|
+
|
|
197
208
|
### Build Options
|
|
198
209
|
|
|
199
210
|
The `build` command supports several options:
|