archgate 0.35.0 → 0.36.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "archgate",
3
- "version": "0.35.0",
3
+ "version": "0.36.1",
4
4
  "description": "Enforce Architecture Decision Records as executable rules — for both humans and AI agents",
5
5
  "keywords": [
6
6
  "adr",
@@ -27,8 +27,7 @@
27
27
  "archgate": "bin/archgate.cjs"
28
28
  },
29
29
  "files": [
30
- "bin/archgate.cjs",
31
- "scripts/postinstall.cjs"
30
+ "bin/archgate.cjs"
32
31
  ],
33
32
  "os": [
34
33
  "darwin",
@@ -49,7 +48,6 @@
49
48
  "format:check": "oxfmt --check .",
50
49
  "knip": "knip",
51
50
  "lint": "oxlint --deny-warnings .",
52
- "postinstall": "node scripts/postinstall.cjs",
53
51
  "test": "bun test --timeout 60000",
54
52
  "test:coverage": "bun test --timeout 60000 --coverage --reporter=junit --reporter-outfile=coverage/junit.xml",
55
53
  "test:watch": "bun test --watch --timeout 60000",
@@ -59,8 +57,8 @@
59
57
  },
60
58
  "devDependencies": {
61
59
  "@commander-js/extra-typings": "14.0.0",
62
- "@commitlint/cli": "20.5.3",
63
- "@commitlint/config-conventional": "20.5.3",
60
+ "@commitlint/cli": "21.0.0",
61
+ "@commitlint/config-conventional": "21.0.0",
64
62
  "@sentry/node-core": "10.52.0",
65
63
  "@simple-release/npm": "2.3.0",
66
64
  "@types/bun": "1.3.13",
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
-
4
- // Best-effort pre-download: tries to fetch the binary during install so the
5
- // first `archgate` invocation is instant. If this script is blocked by the
6
- // package manager (--ignore-scripts, etc.), the bin shim will download
7
- // on-demand at runtime instead.
8
-
9
- const path = require("path");
10
- const fs = require("fs");
11
- const os = require("os");
12
-
13
- function isBinaryPresent() {
14
- const binaryName = process.platform === "win32" ? "archgate.exe" : "archgate";
15
- const cachePath = path.join(os.homedir(), ".archgate", "bin", binaryName);
16
- return fs.existsSync(cachePath);
17
- }
18
-
19
- if (!isBinaryPresent()) {
20
- // Delegate to the bin shim's download logic by running it with --version.
21
- // This triggers the on-demand download without side effects.
22
- try {
23
- require("child_process").execFileSync(
24
- process.execPath,
25
- [path.join(__dirname, "..", "bin", "archgate.cjs"), "--version"],
26
- { stdio: "inherit" }
27
- );
28
- } catch {
29
- // Postinstall must never block `npm install`.
30
- console.warn(
31
- "archgate: could not pre-download binary. It will be downloaded on first run."
32
- );
33
- }
34
- }