codecane 1.0.283 → 1.0.285
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 +1 -1
- package/scripts/postinstall.js +4 -3
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -12,8 +12,9 @@ const unzip = require("unzipper");
|
|
|
12
12
|
const { version } = require("../package.json");
|
|
13
13
|
|
|
14
14
|
// Skip download during local development (e.g., bun i in monorepo root)
|
|
15
|
-
if
|
|
16
|
-
|
|
15
|
+
// Only run download if CODECANE_INSTALL_TYPE is 'deploy' or undefined
|
|
16
|
+
if (process.env.CODECANE_INSTALL_TYPE && process.env.CODECANE_INSTALL_TYPE !== 'deploy') {
|
|
17
|
+
console.log(`CodeCane: Skipping binary download (CODECANE_INSTALL_TYPE=${process.env.CODECANE_INSTALL_TYPE})`);
|
|
17
18
|
process.exit(0);
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -26,7 +27,7 @@ const isWin = platform === "win32";
|
|
|
26
27
|
const ext = isWin ? "zip" : "tar.gz";
|
|
27
28
|
const binary = isWin ? "codecane.exe" : "codecane";
|
|
28
29
|
|
|
29
|
-
const url = `${baseURL}/
|
|
30
|
+
const url = `${baseURL}/codecane-${platform}-${arch}.${ext}`;
|
|
30
31
|
const destDir = path.join(__dirname, "../bin");
|
|
31
32
|
const destPath = path.join(destDir, binary);
|
|
32
33
|
|