We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60627ff commit 757d485Copy full SHA for 757d485
2 files changed
packages/cli/package.json
@@ -26,7 +26,7 @@
26
"lint:ci": "biome lint ./src ./bin --max-diagnostics=200",
27
"pretest": "tsc",
28
"test": "bun test",
29
- "postinstall": "node scripts/postinstall.js"
+ "postinstall": "node scripts/postinstall.cjs"
30
},
31
"keywords": [
32
"cli",
packages/cli/scripts/postinstall.cjs
@@ -0,0 +1,11 @@
1
+if (process.env.CI) process.exit(0);
2
+const { execSync } = require("child_process");
3
+const { arch, platform } = process;
4
+const pkg = `@tpsdev-ai/cli-${platform}-${arch}`;
5
+const version = require("../package.json").version;
6
+
7
+try {
8
+ execSync(`npm install -g ${pkg}@${version}`, { stdio: "inherit" });
9
+} catch {
10
+ console.warn(`Optional: install ${pkg}@${version} for native binary performance.`);
11
+}
0 commit comments