@command-center/command-center 0.7.3 → 0.7.5-rc0

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.
@@ -116,21 +116,6 @@ function resolveBinaryInPackage(packageName, binaryName) {
116
116
  return existsSync(binaryPath) ? binaryPath : null;
117
117
  }
118
118
 
119
- // Resolves a binary from the global npm prefix. This is needed because
120
- // `require.resolve()` (scoped to the wrapper's location) cannot find
121
- // globally-installed packages.
122
- function resolveBinaryInGlobalPackage(packageName, binaryName) {
123
- let globalRoot;
124
- try {
125
- globalRoot = execSync("npm root -g", { encoding: "utf8" }).trim();
126
- } catch {
127
- return null;
128
- }
129
-
130
- const binaryPath = path.join(globalRoot, packageName, "dist", binaryName);
131
- return existsSync(binaryPath) ? binaryPath : null;
132
- }
133
-
134
119
  function resolveBinary() {
135
120
  const entry = PLATFORM_PACKAGES.get(PLATFORM_KEY);
136
121
  if (!entry) {
@@ -249,28 +234,18 @@ if (result.code === STATUS_ILLEGAL_INSTRUCTION && entry.fallbackPackageName) {
249
234
  // Resolve or install fallback binary
250
235
  // ####################
251
236
 
252
- let fallbackPath =
253
- resolveBinaryInPackage(
254
- entry.fallbackPackageName,
255
- entry.fallbackBinaryName,
256
- ) ??
257
- resolveBinaryInGlobalPackage(
258
- entry.fallbackPackageName,
259
- entry.fallbackBinaryName,
260
- );
237
+ let fallbackPath = resolveBinaryInPackage(
238
+ entry.fallbackPackageName,
239
+ entry.fallbackBinaryName,
240
+ );
261
241
 
262
242
  if (!fallbackPath) {
263
243
  const installed = installFallbackPackage(entry.fallbackPackageName);
264
244
  if (installed) {
265
- fallbackPath =
266
- resolveBinaryInPackage(
267
- entry.fallbackPackageName,
268
- entry.fallbackBinaryName,
269
- ) ??
270
- resolveBinaryInGlobalPackage(
271
- entry.fallbackPackageName,
272
- entry.fallbackBinaryName,
273
- );
245
+ fallbackPath = resolveBinaryInPackage(
246
+ entry.fallbackPackageName,
247
+ entry.fallbackBinaryName,
248
+ );
274
249
  }
275
250
  }
276
251
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@command-center/command-center",
3
- "version": "0.7.3",
3
+ "version": "0.7.5-rc0",
4
4
  "type": "module",
5
5
  "description": "Binary distribution of UpToSpeed Command Center",
6
6
  "bin": {
@@ -23,12 +23,12 @@
23
23
  "access": "public"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@command-center/command-center-linux-arm64": "0.7.3",
27
- "@command-center/command-center-linux-x64": "0.7.3",
28
- "@command-center/command-center-macos-arm64": "0.7.3",
29
- "@command-center/command-center-macos-x64": "0.7.3",
30
- "@command-center/command-center-win-arm64": "0.7.3",
31
- "@command-center/command-center-win-x64": "0.7.3"
26
+ "@command-center/command-center-linux-arm64": "0.7.5-rc0",
27
+ "@command-center/command-center-linux-x64": "0.7.5-rc0",
28
+ "@command-center/command-center-macos-arm64": "0.7.5-rc0",
29
+ "@command-center/command-center-macos-x64": "0.7.5-rc0",
30
+ "@command-center/command-center-win-arm64": "0.7.5-rc0",
31
+ "@command-center/command-center-win-x64": "0.7.5-rc0"
32
32
  },
33
33
  "scripts": {}
34
34
  }