create-fcdev 0.3.1 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fcdev",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "创建 fcdev 项目:npm create fcdev,在空目录生成 6502 兼容机程序的开发结构与示例",
5
5
  "license": "Apache-2.0",
6
6
  "author": "sungbin <sungbin@3578.cn>",
@@ -12,11 +12,6 @@
12
12
  "sb2000",
13
13
  "create"
14
14
  ],
15
- "repository": {
16
- "type": "git",
17
- "url": "https://gitee.com/sungbin/fcdev.git",
18
- "directory": "packages/create-fcdev"
19
- },
20
15
  "type": "module",
21
16
  "engines": {
22
17
  "node": ">=22"
package/src/index.mjs CHANGED
@@ -52,8 +52,8 @@ const LANGUAGE_LABELS = { c: 'C 语言(cc65)', asm: '汇编(ca65)' };
52
52
  */
53
53
  export function runCommandInTerminal(command, args, cwd) {
54
54
  return new Promise((resolve, reject) => {
55
- // Windows 上 npm 是 .cmd 文件,必须经 shell 启动;参数都是固定值
56
- const child = spawn(command, args, { cwd, stdio: 'inherit', shell: process.platform === 'win32' });
55
+ // npm 在 Windows 上是 .cmd 文件,必须经 shell 启动;参数都是固定值
56
+ const child = spawn(command, args, { cwd, stdio: 'inherit', shell: true });
57
57
  child.once('error', reject);
58
58
  child.once('close', (code) => resolve(code ?? 1));
59
59
  });
@@ -18,4 +18,4 @@ npm start # 在模拟器里运行(只支持 Windows)
18
18
 
19
19
  ## 文档
20
20
 
21
- 开发文档随 fcdev 安装在 `node_modules/fcdev/docs/`。运行 `npx fcdev docs` 列出全部主题,`npx fcdev docs nes` 查 NES 目标的文档位置与在线地址。
21
+ 开发文档随 fcdev 安装在 `node_modules/fcdev/docs/`。运行 `npx fcdev docs` 列出全部主题,`npx fcdev docs nes` 查 NES 目标的文档位置。
@@ -18,4 +18,4 @@ npm start # 在模拟器里运行(只支持 Windows)
18
18
 
19
19
  ## 文档
20
20
 
21
- 开发文档随 fcdev 安装在 `node_modules/fcdev/docs/`。运行 `npx fcdev docs` 列出全部主题,`npx fcdev docs nes` 查 NES 目标的文档位置与在线地址。
21
+ 开发文档随 fcdev 安装在 `node_modules/fcdev/docs/`。运行 `npx fcdev docs` 列出全部主题,`npx fcdev docs nes` 查 NES 目标的文档位置。