Skip to content

Commit d3eb682

Browse files
committed
fix: ensure release script works in windows
1 parent 7a30122 commit d3eb682

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (readlineSync.keyInYN('\n\nUpdate CHANGELOG?')) {
6767
const depsArg = yargs.argv.deps ? `--deps ${yargs.argv.deps.join(' ')}` : '';
6868
const show_changelog = path.resolve(__dirname, 'show_changelog.js');
6969

70-
changelog = _exec(`${show_changelog} ${depsArg}`, true).stdout;
70+
changelog = _exec(`node ${show_changelog} ${depsArg}`, true).stdout;
7171

7272
console.log('CHANGELOG:\n\n');
7373
console.log(changelog);

show_changelog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (deps.length) {
5252
// because conventional-changelog-core doesn't seem to have a callback to tap into
5353
const fromArg = (from ? ` --from ${from}` : '');
5454
const toArg = (to ? ` --to ${to}` : '');
55-
let stdout = _exec(`${scriptPath} ${fromArg} ${toArg}`, true).stdout;
55+
let stdout = _exec(`node ${scriptPath} ${fromArg} ${toArg}`, true).stdout;
5656
console.log(stdout.trim());
5757

5858
shelljs.mkdir('.show_changelog.tmp');

0 commit comments

Comments
 (0)