Skip to content

Commit d115f11

Browse files
committed
drop cross-spawn
1 parent 3a2b657 commit d115f11

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
},
100100
"devDependencies": {
101101
"c8": "^7.13.0",
102-
"cross-spawn": "^7.0.3",
103102
"esmocha": "^0.1.4",
104103
"fs-extra": "^11.1.1",
105104
"jsdoc": "^4.0.2",

test/resolver.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { fileURLToPath } from 'node:url';
55
import { createRequire } from 'node:module';
66
import process from 'node:process';
77
import fs from 'fs-extra';
8-
import spawn from 'cross-spawn';
98
import { expect } from 'esmocha';
9+
import { execaSync } from 'execa';
1010
import slash from 'slash';
1111
import Environment from '../lib/index.mjs';
1212
import { execaOutput } from '../lib/util/util.js';
@@ -82,8 +82,8 @@ describe('Environment Resolver', async function () {
8282

8383
process.chdir(projectRoot);
8484
if (!fs.existsSync(path.join(projectRoot, 'node_modules'))) {
85-
spawn.sync('npm', ['ci']);
86-
spawn.sync('npm', ['install', '-g', 'generator-dummytest', 'generator-dummy', '--no-package-lock']);
85+
execaSync('npm', ['ci']);
86+
execaSync('npm', ['install', '-g', 'generator-dummytest', 'generator-dummy', '--no-package-lock']);
8787
}
8888
});
8989

@@ -173,7 +173,7 @@ describe('Environment Resolver', async function () {
173173
describe("when there's ancestor node_modules/ folder", async () => {
174174
before(() => {
175175
process.chdir(subDirRoot);
176-
spawn.sync('npm', ['install', '--no-package-lock']);
176+
execaSync('npm', ['install', '--no-package-lock']);
177177
});
178178

179179
after(() => {

0 commit comments

Comments
 (0)