зеркало из https://github.com/electron/electron.git
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:
Родитель
61565465fd
Коммит
47cf1e3acd
|
@ -64,8 +64,13 @@ async function getNewVersion (dryRunMode: DryRunMode) {
|
|||
if (dryRunMode === DryRunMode.REAL_RUN) {
|
||||
console.log(`Bumping for new "${bumpType}" version.`);
|
||||
}
|
||||
const bumpScript = join(__dirname, 'version-bumper.js');
|
||||
const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`];
|
||||
const bumpScript = join(__dirname, 'version-bumper.ts');
|
||||
const scriptArgs = [
|
||||
'node',
|
||||
'node_modules/.bin/ts-node',
|
||||
bumpScript,
|
||||
`--bump=${bumpType}`
|
||||
];
|
||||
if (dryRunMode === DryRunMode.DRY_RUN) scriptArgs.push('--dryRun');
|
||||
try {
|
||||
let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'utf-8' });
|
||||
|
|
Загрузка…
Ссылка в новой задаче