(cmd, args, options = {})
| 55 | } |
| 56 | |
| 57 | const run = (cmd, args, options = {}) => { |
| 58 | const result = _childProcess.spawnSync(cmd, args, { |
| 59 | cwd, |
| 60 | encoding: "utf8", |
| 61 | ...options |
| 62 | }) |
| 63 | |
| 64 | if (result.status !== 0 || result.signal !== null) { |
| 65 | if (result.stdout) process.stdout.write(result.stdout) |
| 66 | if (result.stderr) process.stderr.write(result.stderr) |
| 67 | process.exit(result.status ?? 1) |
| 68 | } |
| 69 | |
| 70 | return result.stdout |
| 71 | } |
| 72 | |
| 73 | const applyPublishConfig = (packageJson) => { |
| 74 | const { publishConfig, ...manifest } = packageJson |
no test coverage detected