@costrict/cs 3.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/bin/cs +7 -4
  2. package/package.json +12 -12
package/bin/cs CHANGED
@@ -6,8 +6,11 @@ const path = require("path")
6
6
  const os = require("os")
7
7
 
8
8
  function run(target) {
9
- console.error(`[DEBUG] Executing: ${target} ${process.argv.slice(2).join(' ')}`)
10
- console.error(`[DEBUG] target exists: ${fs.existsSync(target)}`)
9
+ const DEBUG = process.env.DEBUG === "cs"
10
+ if (DEBUG) {
11
+ console.error(`[DEBUG] Executing: ${target} ${process.argv.slice(2).join(' ')}`)
12
+ console.error(`[DEBUG] target exists: ${fs.existsSync(target)}`)
13
+ }
11
14
  if (!fs.existsSync(target)) {
12
15
  console.error(`[ERROR] Binary not found: ${target}`)
13
16
  process.exit(1)
@@ -22,7 +25,7 @@ function run(target) {
22
25
  process.exit(1)
23
26
  }
24
27
  const code = typeof result.status === "number" ? result.status : 0
25
- console.error(`[DEBUG] Exit code: ${code}`)
28
+ if (DEBUG) console.error(`[DEBUG] Exit code: ${code}`)
26
29
  process.exit(code)
27
30
  }
28
31
 
@@ -53,7 +56,7 @@ let arch = archMap[os.arch()]
53
56
  if (!arch) {
54
57
  arch = os.arch()
55
58
  }
56
- const base = "@costrict/cs-" + platform + "-" + arch
59
+ const base = "@costrict/cs-" + platform + "-" + arch + (platform === "windows" || (platform === "linux" && arch === "x64") ? "-baseline" : "")
57
60
  const binary = platform === "windows" ? "cs.exe" : "cs"
58
61
 
59
62
  function findBinary(startDir) {
package/package.json CHANGED
@@ -6,18 +6,18 @@
6
6
  "scripts": {
7
7
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
8
8
  },
9
- "version": "3.0.0",
9
+ "version": "3.0.1",
10
10
  "optionalDependencies": {
11
- "@costrict/cs-linux-arm64": "3.0.0",
12
- "@costrict/cs-linux-x64": "3.0.0",
13
- "@costrict/cs-linux-x64-baseline": "3.0.0",
14
- "@costrict/cs-linux-arm64-musl": "3.0.0",
15
- "@costrict/cs-linux-x64-musl": "3.0.0",
16
- "@costrict/cs-linux-x64-baseline-musl": "3.0.0",
17
- "@costrict/cs-darwin-arm64": "3.0.0",
18
- "@costrict/cs-darwin-x64": "3.0.0",
19
- "@costrict/cs-darwin-x64-baseline": "3.0.0",
20
- "@costrict/cs-windows-x64": "3.0.0",
21
- "@costrict/cs-windows-x64-baseline": "3.0.0"
11
+ "@costrict/cs-linux-arm64": "3.0.1",
12
+ "@costrict/cs-linux-x64": "3.0.1",
13
+ "@costrict/cs-linux-x64-baseline": "3.0.1",
14
+ "@costrict/cs-linux-arm64-musl": "3.0.1",
15
+ "@costrict/cs-linux-x64-musl": "3.0.1",
16
+ "@costrict/cs-linux-x64-baseline-musl": "3.0.1",
17
+ "@costrict/cs-darwin-arm64": "3.0.1",
18
+ "@costrict/cs-darwin-x64": "3.0.1",
19
+ "@costrict/cs-darwin-x64-baseline": "3.0.1",
20
+ "@costrict/cs-windows-x64": "3.0.1",
21
+ "@costrict/cs-windows-x64-baseline": "3.0.1"
22
22
  }
23
23
  }