Replace execa with nano-spawn in release script (#17129)

This commit is contained in:
fisker Cheung authored and GitHub committed 2025-02-22 11:58:23 +08:00
1 parent 4460a4e55d
commit c98acabc34
6 files changed
+19 -206

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import fs from "node:fs";
import { execa } from "execa";
import spawn from "nano-spawn";
import styleText from "node-style-text";
import semver from "semver";
import {
@@ -17,7 +17,7 @@ function writeChangelog(params) {
}
async function getChangelogForPatch({ version, previousVersion }) {
const { stdout: changelog } = await execa("node", [
const { stdout: changelog } = await spawn(process.execPath, [
"scripts/changelog-for-patch.js",
"--prev-version",
previousVersion,