@0x-jerry/x 2.2.0 → 2.2.2

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/dist/xr.js +4 -2
  2. package/package.json +2 -2
package/dist/xr.js CHANGED
@@ -12,6 +12,7 @@ import pc from "picocolors";
12
12
  import jsonc from "jsonc-parser";
13
13
  import { readFile, readdir } from "fs/promises";
14
14
  import { statSync } from "fs";
15
+ import os from "os";
15
16
  var { red, cyan } = pc;
16
17
  async function runScript(command, params = []) {
17
18
  const [scriptExecuteContent, allScripts] = await getScriptContent(command);
@@ -40,8 +41,9 @@ function makeEnv() {
40
41
  }
41
42
  dir = resolve(dir, "..");
42
43
  } while (dir !== resolve(dir, ".."));
43
- const PATH = envPaths.join(":");
44
- env.PATH = [process.env.PATH || "", PATH].filter(Boolean).join(":");
44
+ const separator = os.platform() === "win32" ? ";" : ":";
45
+ const PATH = envPaths.join(separator);
46
+ env.PATH = [process.env.PATH || "", PATH].filter(Boolean).join(separator);
45
47
  return env;
46
48
  }
47
49
  async function getPackageScripts() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0x-jerry/x",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "main": "dist/index.js",
5
5
  "repository": "https://github.com/0x-jerry/x.git",
6
6
  "author": "Jerry Wang <x.jerry.wang@gmail.com>",
@@ -31,7 +31,7 @@
31
31
  "clean": true
32
32
  },
33
33
  "dependencies": {
34
- "@0x-jerry/silver": "^0.1.4",
34
+ "@0x-jerry/silver": "^0.1.5",
35
35
  "@0x-jerry/utils": "^2.0.0",
36
36
  "decompress": "^4.2.1",
37
37
  "execa": "^8.0.1",