@wagq/wa-cli 0.6.12 → 0.6.14

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.
@@ -1,6 +1,7 @@
1
1
  const { spawn } = require("node:child_process"); // 使用 node: 前缀明确使用核心模块
2
2
  const Prompt = require("inquirer");
3
3
  const { resolve } = require("node:path");
4
+ const path = require("node:path");
4
5
 
5
6
  // 可以在https://www.toolhelper.cn/SSL/SSLGenerate生成
6
7
  const sslQuestions = () => [
@@ -36,7 +37,10 @@ const server = async (filePath, argv) => {
36
37
  }
37
38
 
38
39
  const child = spawn(
39
- `${process.cwd()}\\node_modules\\.bin\\http-server ${args.join(` `)}`,
40
+ `${resolve(
41
+ currentFilePath,
42
+ "../../"
43
+ )}\\node_modules\\.bin\\http-server ${args.join(` `)}`,
40
44
  null,
41
45
  {
42
46
  cwd: process.cwd(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wagq/wa-cli",
3
- "version": "0.6.12",
3
+ "version": "0.6.14",
4
4
  "description": "wa的脚手架",
5
5
  "main": "index.js",
6
6
  "scripts": {