Skip to content

Commit 498071c

Browse files
authored
Replace execa with nano-spawn (#295)
1 parent 082c583 commit 498071c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"ava": "^6.3.0",
5151
"cheerio": "^1.0.0",
5252
"eslint-plugin-jest": "^28.11.0",
53-
"execa": "^9.5.2",
5453
"get-port": "^7.1.0",
54+
"nano-spawn": "^0.2.0",
5555
"npm-run-all2": "^8.0.1",
5656
"outdent": "^0.8.0",
5757
"patch-package": "^8.0.0",

scripts/update.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {parseArgs} from 'node:util';
22
import {outdent} from 'outdent';
3-
import {execaCommand} from 'execa';
3+
import spawn from 'nano-spawn';
44
import getBuiltinGlobals from './get-builtin-globals.mjs';
55
import getNodeBuiltinGlobals from './get-node-builtin-globals.mjs';
66
import {
@@ -97,11 +97,11 @@ async function run(options) {
9797

9898
if (!options.dry) {
9999
try {
100-
await execaCommand('npm run build');
100+
await spawn('npm', ['run', 'build'], {stdio: 'inherit'});
101101
} catch {}
102102

103103
try {
104-
await execaCommand('npx xo --fix');
104+
await spawn('npx', ['xo', '--fix'], {stdio: 'inherit'});
105105
} catch {}
106106
}
107107
}

0 commit comments

Comments
 (0)