Commit 66cef71
fix(rn-runner): 为 spawn 启用 shell (#18478)
问题:
在 Windows(PowerShell/CMD)环境中, rn-runner 通过 child_process.spawn 启动 metro/打包时未启用 shell,
可能导致命令解析或路径解析失败,出现开发服务器或打包无法启动的问题。
解决:
在 src/index.ts 的两处 spawn 调用设置 { stdio: 'inherit', shell: true }
影响范围:
全平台:Wind、MacOS测试通过
验证:
在 Windows 环境验证 RN 开发与打包流程可正常运行,日志输出符合预期。
Closes #18180, #17744, #16938
Co-authored-by: huxiang <xiang.hu@weimob.com>
Co-authored-by: vasily <chenchiajun@gmail.com>1 parent 7420fda commit 66cef71
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments