build: use ts-node to spawn the version-bumper (#44057)
Missed this in the tsification, we should probably call this via API instead of spawning a sub-proc?
This commit is contained in:
parent
61565465fd
commit
47cf1e3acd
1 changed files with 7 additions and 2 deletions
|
@ -64,8 +64,13 @@ async function getNewVersion (dryRunMode: DryRunMode) {
|
||||||
if (dryRunMode === DryRunMode.REAL_RUN) {
|
if (dryRunMode === DryRunMode.REAL_RUN) {
|
||||||
console.log(`Bumping for new "${bumpType}" version.`);
|
console.log(`Bumping for new "${bumpType}" version.`);
|
||||||
}
|
}
|
||||||
const bumpScript = join(__dirname, 'version-bumper.js');
|
const bumpScript = join(__dirname, 'version-bumper.ts');
|
||||||
const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`];
|
const scriptArgs = [
|
||||||
|
'node',
|
||||||
|
'node_modules/.bin/ts-node',
|
||||||
|
bumpScript,
|
||||||
|
`--bump=${bumpType}`
|
||||||
|
];
|
||||||
if (dryRunMode === DryRunMode.DRY_RUN) scriptArgs.push('--dryRun');
|
if (dryRunMode === DryRunMode.DRY_RUN) scriptArgs.push('--dryRun');
|
||||||
try {
|
try {
|
||||||
let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'utf-8' });
|
let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'utf-8' });
|
||||||
|
|
Loading…
Reference in a new issue