MCPcopy Create free account
hub / github.com/effect-app/libs / run

Function run

scripts/stagePublishPackage.mjs:57–71  ·  view source on GitHub ↗
(cmd, args, options = {})

Source from the content-addressed store, hash-verified

55}
56
57const 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
73const applyPublishConfig = (packageJson) => {
74 const { publishConfig, ...manifest } = packageJson

Callers 1

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected