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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codecane",
3
- "version": "1.0.283",
3
+ "version": "1.0.285",
4
4
  "description": "Thin npm wrapper that installs the CodeCane binary",
5
5
  "bin": {
6
6
  "codecane": "bin/launcher.js"
@@ -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 (process.env.CODECANE_INSTALL_TYPE !== 'deploy') {
16
- console.log("CodeCane: Skipping binary download (local development install)");
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}/api/${version}/codecane-${platform}-${arch}.${ext}`;
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