weapp-ide-cli 2.0.0 → 2.0.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.
@@ -25,8 +25,8 @@ var logger_default = logger;
25
25
  // src/utils.ts
26
26
  import process from "node:process";
27
27
  import path2 from "pathe";
28
- import { execa } from "execa";
29
28
  async function execute(cliPath, argv) {
29
+ const { execa } = await import("execa");
30
30
  const task = execa(cliPath, argv);
31
31
  task?.stdout?.pipe(process.stdout);
32
32
  await task;
package/dist/cli.cjs CHANGED
@@ -96,9 +96,9 @@ async function getConfig() {
96
96
  // src/utils.ts
97
97
  var import_node_process = __toESM(require("process"), 1);
98
98
  var import_pathe = __toESM(require("pathe"), 1);
99
- var import_execa = require("execa");
100
99
  async function execute(cliPath, argv2) {
101
- const task = (0, import_execa.execa)(cliPath, argv2);
100
+ const { execa } = await import("execa");
101
+ const task = execa(cliPath, argv2);
102
102
  task?.stdout?.pipe(import_node_process.default.stdout);
103
103
  await task;
104
104
  }
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger_default,
3
3
  parse
4
- } from "./chunk-4TQBAV7J.js";
4
+ } from "./chunk-IVTZB4KY.js";
5
5
 
6
6
  // src/cli.ts
7
7
  import process from "node:process";
package/dist/index.cjs CHANGED
@@ -113,9 +113,9 @@ async function getConfig() {
113
113
  // src/utils.ts
114
114
  var import_node_process = __toESM(require("process"), 1);
115
115
  var import_pathe = __toESM(require("pathe"), 1);
116
- var import_execa = require("execa");
117
116
  async function execute(cliPath, argv) {
118
- const task = (0, import_execa.execa)(cliPath, argv);
117
+ const { execa } = await import("execa");
118
+ const task = execa(cliPath, argv);
119
119
  task?.stdout?.pipe(import_node_process.default.stdout);
120
120
  await task;
121
121
  }
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  operatingSystemName,
9
9
  parse,
10
10
  resolvePath
11
- } from "./chunk-4TQBAV7J.js";
11
+ } from "./chunk-IVTZB4KY.js";
12
12
  export {
13
13
  createAlias,
14
14
  createPathCompat,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-ide-cli",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "description": "让微信开发者工具,用起来更加方便!",
6
6
  "author": "SonOfMagic <qq1324318532@gmail.com>",
7
7
  "license": "MIT",
@@ -48,10 +48,10 @@
48
48
  "registry": "https://registry.npmjs.org/"
49
49
  },
50
50
  "dependencies": {
51
- "execa": "9.3.0",
51
+ "execa": "9.3.1",
52
52
  "fs-extra": "^11.2.0",
53
53
  "pathe": "^1.1.2",
54
- "@weapp-core/logger": "^1.0.0"
54
+ "@weapp-core/logger": "^1.0.1"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "tsup --watch --sourcemap",
@@ -61,6 +61,7 @@
61
61
  "test": "vitest run",
62
62
  "weapp": "tsx src/cli.ts",
63
63
  "debug": "tsx src/cli.ts config",
64
- "raw": "node bin/weapp.js"
64
+ "raw": "node bin/weapp.js",
65
+ "sync": "cnpm sync weapp-ide-cli"
65
66
  }
66
67
  }