@doist/twist-cli 2.18.0 → 2.18.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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.18.1](https://github.com/Doist/twist-cli/compare/v2.18.0...v2.18.1) (2026-03-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * use cross-platform postinstall script ([#102](https://github.com/Doist/twist-cli/issues/102)) ([dabe906](https://github.com/Doist/twist-cli/commit/dabe9069eb106349488ae79b1b0e92f21fae979b))
7
+
1
8
  # [2.18.0](https://github.com/Doist/twist-cli/compare/v2.17.1...v2.18.0) (2026-03-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/twist-cli",
3
- "version": "2.18.0",
3
+ "version": "2.18.1",
4
4
  "description": "TypeScript CLI for Twist",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "lint:check": "biome check .",
17
17
  "format": "biome format --write . && prettier --write '**/*.{md,yml,yaml,css}'",
18
18
  "format:check": "biome check --formatter-enabled=true . && prettier --check '**/*.{md,yml,yaml,css}'",
19
- "postinstall": "test -f dist/postinstall.js && node dist/postinstall.js || true",
19
+ "postinstall": "node scripts/postinstall.js",
20
20
  "test": "vitest run",
21
21
  "test:watch": "vitest"
22
22
  },
@@ -45,6 +45,7 @@
45
45
  },
46
46
  "files": [
47
47
  "dist",
48
+ "scripts",
48
49
  "CHANGELOG.md"
49
50
  ],
50
51
  "dependencies": {
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Postinstall script that updates installed skills after package installation.
5
+ * Silently succeeds when dist/ hasn't been built yet (e.g., during local development).
6
+ */
7
+
8
+ import('../dist/postinstall.js').catch((err) => {
9
+ if (err.code !== 'ERR_MODULE_NOT_FOUND') {
10
+ console.error(err)
11
+ }
12
+ })