onepipeline-api-cli 0.34.0 → 0.36.0

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.
@@ -24,7 +24,6 @@ const { spawn } = require("node:child_process");
24
24
  const PACKAGES = {
25
25
  "linux-x64": "onepipeline-api-cli-linux-x64",
26
26
  "linux-arm64": "onepipeline-api-cli-linux-arm64",
27
- "darwin-x64": "onepipeline-api-cli-darwin-x64",
28
27
  "darwin-arm64": "onepipeline-api-cli-darwin-arm64",
29
28
  "win32-x64": "onepipeline-api-cli-win32-x64",
30
29
  };
@@ -40,8 +39,21 @@ function fail(message) {
40
39
  process.exit(1);
41
40
  }
42
41
 
42
+ // Intel macOS was released up to the version before Darwin builds moved to one
43
+ // Apple Silicon job; no later release carries a darwin-x64 package, so say that
44
+ // rather than sending the user looking for an optional dependency that never
45
+ // existed.
46
+ const DISCONTINUED = {
47
+ "darwin-x64":
48
+ "Intel macOS is no longer supported: prebuilt binaries ship for Apple " +
49
+ "Silicon (darwin-arm64) only.",
50
+ };
51
+
43
52
  function binaryPath() {
44
53
  const key = `${process.platform}-${process.arch}`;
54
+ if (DISCONTINUED[key]) {
55
+ fail(`${DISCONTINUED[key]} ${OTHER_INSTALLS}`);
56
+ }
45
57
  const pkg = PACKAGES[key];
46
58
  // llmlint: ignore-block[changed_behavior_has_e2e] reaching this branch means running
47
59
  // where no prebuilt package exists, and a test can only get there by lying to node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onepipeline-api-cli",
3
- "version": "0.34.0",
3
+ "version": "0.36.0",
4
4
  "description": "Read API and browser view for onepipeline runs.",
5
5
  "keywords": [
6
6
  "cli",
@@ -27,10 +27,9 @@
27
27
  "node": ">=18"
28
28
  },
29
29
  "optionalDependencies": {
30
- "onepipeline-api-cli-linux-x64": "0.34.0",
31
- "onepipeline-api-cli-linux-arm64": "0.34.0",
32
- "onepipeline-api-cli-darwin-x64": "0.34.0",
33
- "onepipeline-api-cli-darwin-arm64": "0.34.0",
34
- "onepipeline-api-cli-win32-x64": "0.34.0"
30
+ "onepipeline-api-cli-linux-x64": "0.36.0",
31
+ "onepipeline-api-cli-linux-arm64": "0.36.0",
32
+ "onepipeline-api-cli-darwin-arm64": "0.36.0",
33
+ "onepipeline-api-cli-win32-x64": "0.36.0"
35
34
  }
36
35
  }