(cwd: string, ...args: string[])
| 15 | const SCRIPT = path.resolve(__dirname, '..', 'scripts', 'prepare-release.mjs'); |
| 16 | |
| 17 | function run(cwd: string, ...args: string[]) { |
| 18 | const out = execFileSync('node', [SCRIPT, ...args], { cwd, encoding: 'utf8' }); |
| 19 | return out.trim(); |
| 20 | } |
| 21 | |
| 22 | function setup(changelog: string, version = '1.2.3') { |
| 23 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'prepare-release-')); |
no outgoing calls
no test coverage detected