(exec, { list })
| 7 | |
| 8 | const executor = { |
| 9 | async windows (exec, { list }) { |
| 10 | const cmds = [] |
| 11 | for (const item of list) { |
| 12 | cmds.push(`npm config set ${item.key} ${item.value}`) |
| 13 | } |
| 14 | return await exec(cmds, { type: 'cmd' }) |
| 15 | }, |
| 16 | async linux (exec, { port }) { |
| 17 | throw new Error('暂未实现此功能') |
| 18 | }, |