@accio-ai/ecommerce-cli 0.0.9-rc.2 → 0.0.9-rc.3

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/bin/ecomctl.cjs CHANGED
@@ -71,6 +71,13 @@ function resolveBinaryPath(
71
71
  );
72
72
  }
73
73
 
74
+ function spawnBinaryPath(binaryPath, platform = process.platform) {
75
+ if (platform !== "win32" || binaryPath.length < 260) {
76
+ return binaryPath;
77
+ }
78
+ return path.win32.toNamespacedPath(binaryPath);
79
+ }
80
+
74
81
  function childSignalFor(platform, signal, childMissedOriginalSignal = false) {
75
82
  if (platform !== "win32") {
76
83
  return signal;
@@ -154,7 +161,7 @@ function run(args = process.argv.slice(2)) {
154
161
  process.on(signal, () => forwardSignal(signal));
155
162
  }
156
163
 
157
- child = childProcess.spawn(binaryPath, args, {
164
+ child = childProcess.spawn(spawnBinaryPath(binaryPath), args, {
158
165
  env: process.env,
159
166
  stdio: "inherit",
160
167
  });
@@ -196,4 +203,5 @@ module.exports = {
196
203
  resolveBinaryPath,
197
204
  resolveBinaryPathForPackage,
198
205
  run,
206
+ spawnBinaryPath,
199
207
  };
package/checksums.json CHANGED
@@ -1,35 +1,35 @@
1
1
  {
2
- "version": "0.0.9-rc.2",
2
+ "version": "0.0.9-rc.3",
3
3
  "binaries": {
4
4
  "darwin-arm64": {
5
5
  "package": "@accio-ai/ecommerce-cli-darwin-arm64",
6
6
  "file": "ecomctl",
7
- "sha256": "799c6717cc663654a7f0f50a11b41c09bc3083a43c0ee98370b59565ec0afa16"
7
+ "sha256": "369c1fab20f6332c398231189f8a099f7b29f25a1aebd16cdebb69fbea17eb3c"
8
8
  },
9
9
  "darwin-x64": {
10
10
  "package": "@accio-ai/ecommerce-cli-darwin-x64",
11
11
  "file": "ecomctl",
12
- "sha256": "44b7b6b9fd57975acd92c1b2be58e27560d0eadea01a9903089bd6534fb210c0"
12
+ "sha256": "9c329b540318986453397f0070348f2a8beb8f2ecf7a2e05a2475caca7efdbfe"
13
13
  },
14
14
  "linux-arm64": {
15
15
  "package": "@accio-ai/ecommerce-cli-linux-arm64",
16
16
  "file": "ecomctl",
17
- "sha256": "e4308cdea7fa12b221a6b558ba471b12ca4ff7b3939b06619f1cdb55a3250e49"
17
+ "sha256": "a69f6c19a6fd61851d60813e3a1e9e80f3f2366379d222afae83060051014b8b"
18
18
  },
19
19
  "linux-x64": {
20
20
  "package": "@accio-ai/ecommerce-cli-linux-x64",
21
21
  "file": "ecomctl",
22
- "sha256": "eebd07a92636952ce8694d273c46947644a1ff399b3c4c00a2c5eae6f2662499"
22
+ "sha256": "70797b405da3e621ec7f85efc750571cb2d2b1b63cbd70b55cd12c81bde419c4"
23
23
  },
24
24
  "win32-arm64": {
25
25
  "package": "@accio-ai/ecommerce-cli-win32-arm64",
26
26
  "file": "ecomctl.exe",
27
- "sha256": "5c5ffd9ba4563527204b563a130ce5495975622b825cc1ae0cd56f1299cb1d8d"
27
+ "sha256": "4b967e717caf6522d46952745c44c91f91e5c40a79d67e24818ba621c479bd01"
28
28
  },
29
29
  "win32-x64": {
30
30
  "package": "@accio-ai/ecommerce-cli-win32-x64",
31
31
  "file": "ecomctl.exe",
32
- "sha256": "b3705247cc0530c37e165695af5f577b92ad8407abab4ade7d5891656adc84ab"
32
+ "sha256": "4fbf934cac6f9fed3d634c09179451932d7dbf1335e196e51d4fa026b9a92ca1"
33
33
  }
34
34
  }
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accio-ai/ecommerce-cli",
3
- "version": "0.0.9-rc.2",
3
+ "version": "0.0.9-rc.3",
4
4
  "description": "Local, statically compiled ecommerce automation toolkit",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -18,12 +18,12 @@
18
18
  "postinstall": "node postinstall.cjs"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@accio-ai/ecommerce-cli-darwin-arm64": "0.0.9-rc.2",
22
- "@accio-ai/ecommerce-cli-darwin-x64": "0.0.9-rc.2",
23
- "@accio-ai/ecommerce-cli-linux-arm64": "0.0.9-rc.2",
24
- "@accio-ai/ecommerce-cli-linux-x64": "0.0.9-rc.2",
25
- "@accio-ai/ecommerce-cli-win32-arm64": "0.0.9-rc.2",
26
- "@accio-ai/ecommerce-cli-win32-x64": "0.0.9-rc.2"
21
+ "@accio-ai/ecommerce-cli-darwin-arm64": "0.0.9-rc.3",
22
+ "@accio-ai/ecommerce-cli-darwin-x64": "0.0.9-rc.3",
23
+ "@accio-ai/ecommerce-cli-linux-arm64": "0.0.9-rc.3",
24
+ "@accio-ai/ecommerce-cli-linux-x64": "0.0.9-rc.3",
25
+ "@accio-ai/ecommerce-cli-win32-arm64": "0.0.9-rc.3",
26
+ "@accio-ai/ecommerce-cli-win32-x64": "0.0.9-rc.3"
27
27
  },
28
28
  "files": [
29
29
  "bin",
package/postinstall.cjs CHANGED
@@ -12,6 +12,7 @@ const {
12
12
  platformKey,
13
13
  platformPackageName,
14
14
  resolveBinaryPath,
15
+ spawnBinaryPath,
15
16
  } = require("./bin/ecomctl.cjs");
16
17
  const { readJSONFile } = require("./json-file.cjs");
17
18
 
@@ -78,7 +79,7 @@ function initializeDatabase(binaryPath, options = {}) {
78
79
  }
79
80
  let result;
80
81
  try {
81
- result = spawnSync(binaryPath, INIT_ARGS, {
82
+ result = spawnSync(spawnBinaryPath(binaryPath, options.platform || process.platform), INIT_ARGS, {
82
83
  encoding: "utf8",
83
84
  env: childEnvironment,
84
85
  killSignal: "SIGKILL",