@spenceriam/impulse 1.2.0 → 1.2.2
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 +6 -6
- package/postinstall.mjs +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spenceriam/impulse",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Provider-flexible terminal AI coding agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@spenceriam/impulse-linux-x64": "1.2.
|
|
25
|
-
"@spenceriam/impulse-linux-arm64": "1.2.
|
|
26
|
-
"@spenceriam/impulse-darwin-x64": "1.2.
|
|
27
|
-
"@spenceriam/impulse-darwin-arm64": "1.2.
|
|
28
|
-
"@spenceriam/impulse-windows-x64": "1.2.
|
|
24
|
+
"@spenceriam/impulse-linux-x64": "1.2.2",
|
|
25
|
+
"@spenceriam/impulse-linux-arm64": "1.2.2",
|
|
26
|
+
"@spenceriam/impulse-darwin-x64": "1.2.2",
|
|
27
|
+
"@spenceriam/impulse-darwin-arm64": "1.2.2",
|
|
28
|
+
"@spenceriam/impulse-windows-x64": "1.2.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -76,7 +76,15 @@ function findBinary() {
|
|
|
76
76
|
|
|
77
77
|
return { binaryPath, binaryName };
|
|
78
78
|
} catch (error) {
|
|
79
|
-
|
|
79
|
+
const wrapperPkg = JSON.parse(
|
|
80
|
+
fs.readFileSync(path.join(__dirname, "package.json"), "utf8")
|
|
81
|
+
);
|
|
82
|
+
throw new Error(
|
|
83
|
+
`Could not find package ${packageName}: ${error.message}\n` +
|
|
84
|
+
`The platform optional dependency may have failed to install (for example npm 404 on a broken publish).\n` +
|
|
85
|
+
`Try: npm cache clean --force && npm i -g @spenceriam/impulse@${wrapperPkg.version}\n` +
|
|
86
|
+
`Or use the macOS/Linux/Windows archives from the GitHub release for v${wrapperPkg.version}.`
|
|
87
|
+
);
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
90
|
|