@bismawy/pi-arnative 0.3.3 → 0.3.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/CHANGELOG.md +9 -0
- package/README.md +9 -0
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.4] - 2026-10-04
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `scripts/release-check.mjs`, a read-only release preflight with one stage per step of the release (`pre-tag`, `pre-publish`, `post-publish`): it verifies a clean tree on `main` in sync with `origin/main`, no open pull requests, the `CHANGELOG.md` entry, whether the tag exists **and is pushed**, and whether the registry already serves the version. It never writes, tags, pushes or publishes.
|
|
7
|
+
- `npm run release:check` (the `pre-tag` stage) and a `prepublishOnly` hook wired to the `pre-publish` stage. A missing or unpushed tag now aborts `npm publish` with `npm error code 1`, so a forgotten `git tag` can no longer ship a release.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- README documents the release stages and their exit codes (`0` pass, `1` check failed, `2` bad usage).
|
|
11
|
+
|
|
3
12
|
## [0.3.3] - 2026-10-04
|
|
4
13
|
|
|
5
14
|
### Changed
|
package/README.md
CHANGED
|
@@ -96,6 +96,15 @@ npm test # Run self-checks & theme generator check
|
|
|
96
96
|
npm run themes # Rebuild all theme variants
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
+
**Releasing:** `scripts/release-check.mjs` is a read-only preflight (never writes, tags, pushes or publishes) with one stage per step of the release:
|
|
100
|
+
|
|
101
|
+
| Stage | Run before | Checks |
|
|
102
|
+
| :--- | :--- | :--- |
|
|
103
|
+
| `pre-tag` | `git tag` | clean tree on `main`, in sync, no open PRs, `CHANGELOG.md` entry, tag free, version unpublished |
|
|
104
|
+
| `pre-publish` | `npm publish` | the above, plus the tag exists **and is pushed** |
|
|
105
|
+
| `post-publish` | done | the above, plus the version is live on the registry |
|
|
106
|
+
|
|
107
|
+
`pre-publish` runs automatically through npm's `prepublishOnly`, so a missing or unpushed tag aborts the publish (`npm error code 1`) instead of shipping a version whose tag was forgotten. `npm run release:check` is the `pre-tag` shorthand. Exit codes: `0` pass, `1` a check failed, `2` bad usage.
|
|
99
108
|
</details>
|
|
100
109
|
|
|
101
110
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bismawy/pi-arnative",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Refined aesthetics. Cohesive tools. Built for Pi. Warm themes, rounded tool boxes, tabbed header, compact footer and a /usage dashboard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -42,6 +42,8 @@
|
|
|
42
42
|
"scripts": {
|
|
43
43
|
"dev": "pi --extension ./extensions/tools.ts --extension ./extensions/section-headers.ts --extension ./extensions/footer.ts --extension ./extensions/timestamps.ts --extension ./extensions/ui-render-tweaks.ts --extension ./extensions/usage.ts --extension ./extensions/arnative.ts",
|
|
44
44
|
"test": "node lib/box.ts && node lib/ansi.ts && node lib/shortcuts.ts && node themes/gen-themes.mjs --check && node extensions/tools.ts && node extensions/footer.ts && node extensions/timestamps.ts && node extensions/section-headers.ts && node extensions/ui-render-tweaks.ts && node extensions/usage.ts && node extensions/arnative.ts",
|
|
45
|
-
"themes": "node themes/gen-themes.mjs"
|
|
45
|
+
"themes": "node themes/gen-themes.mjs",
|
|
46
|
+
"release:check": "node scripts/release-check.mjs pre-tag",
|
|
47
|
+
"prepublishOnly": "node scripts/release-check.mjs pre-publish"
|
|
46
48
|
}
|
|
47
49
|
}
|