@ironbee-ai/cli 0.8.0 → 0.8.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/CHANGELOG.md +6 -0
- package/package.json +5 -3
- package/scripts/run-postinstall.js +35 -0
- package/scripts/run-preuninstall.js +19 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.1 (2026-05-08)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **ci:** bump release-npm to Node 22 + silence postinstall stderr noise ([ded3dbd](https://github.com/ironbee-ai/ironbee-cli/commit/ded3dbdfbe7447576ea6523d047eb5a55e669074))
|
|
8
|
+
|
|
3
9
|
## 0.8.0 (2026-05-08)
|
|
4
10
|
|
|
5
11
|
## 0.7.3 (2026-05-07)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ironbee-ai/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "The CLI for IronBee — Verification and Intelligence Layer for Agentic Development",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"scripts/run-postinstall.js",
|
|
12
|
+
"scripts/run-preuninstall.js",
|
|
11
13
|
"README.md",
|
|
12
14
|
"LICENSE",
|
|
13
15
|
"CHANGELOG.md"
|
|
@@ -23,8 +25,8 @@
|
|
|
23
25
|
"release:patch": "release-it patch --ci -VV",
|
|
24
26
|
"release:minor": "release-it minor --ci -VV",
|
|
25
27
|
"release:major": "release-it major --ci -VV",
|
|
26
|
-
"postinstall": "node
|
|
27
|
-
"preuninstall": "node
|
|
28
|
+
"postinstall": "node scripts/run-postinstall.js",
|
|
29
|
+
"preuninstall": "node scripts/run-preuninstall.js"
|
|
28
30
|
},
|
|
29
31
|
"keywords": [
|
|
30
32
|
"ai",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper for the `postinstall` lifecycle hook.
|
|
4
|
+
*
|
|
5
|
+
* The published package ships `dist/scripts/postinstall.js` (compiled from
|
|
6
|
+
* `src/scripts/postinstall.ts`) and that's what we want to run when an
|
|
7
|
+
* end user installs the CLI via `npm install -g @ironbee-ai/cli`.
|
|
8
|
+
*
|
|
9
|
+
* In a fresh dev clone or CI checkout, `dist/` doesn't exist yet because
|
|
10
|
+
* `npm ci` runs lifecycle hooks BEFORE `npm run build`. The previous
|
|
11
|
+
* inline `node dist/scripts/postinstall.js || true` form swallowed the
|
|
12
|
+
* exit code at the shell level but still printed a `MODULE_NOT_FOUND`
|
|
13
|
+
* stack trace to stderr — confusing in CI logs and not portable to
|
|
14
|
+
* Windows cmd / PowerShell.
|
|
15
|
+
*
|
|
16
|
+
* This wrapper checks for the compiled file first and silently no-ops
|
|
17
|
+
* when it isn't there. Cross-platform, no stderr noise.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const fs = require("fs");
|
|
21
|
+
const path = require("path");
|
|
22
|
+
|
|
23
|
+
const target = path.join(__dirname, "..", "dist", "scripts", "postinstall.js");
|
|
24
|
+
if (!fs.existsSync(target)) {
|
|
25
|
+
// dist/ not built yet (dev clone, fresh CI before build) — skip.
|
|
26
|
+
process.exit(0);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
try {
|
|
30
|
+
require(target);
|
|
31
|
+
} catch (e) {
|
|
32
|
+
// Match the original `|| true` semantics: never break the install
|
|
33
|
+
// because the optional postinstall hook had a problem.
|
|
34
|
+
process.exit(0);
|
|
35
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper for the `preuninstall` lifecycle hook. See
|
|
4
|
+
* `scripts/run-postinstall.js` for the why; same shape.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const path = require("path");
|
|
9
|
+
|
|
10
|
+
const target = path.join(__dirname, "..", "dist", "scripts", "preuninstall.js");
|
|
11
|
+
if (!fs.existsSync(target)) {
|
|
12
|
+
process.exit(0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
require(target);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|