Skip to content

Commit dbf4522

Browse files
chore: update execa
1 parent f369287 commit dbf4522

File tree

7 files changed

+288
-61
lines changed

7 files changed

+288
-61
lines changed

package-lock.json

Lines changed: 250 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"eslint-plugin-n": "^17.19.0",
7575
"eslint-plugin-prettier": "^5.4.1",
7676
"eslint-plugin-unicorn": "^62.0.0",
77-
"execa": "^5.0.0",
77+
"execa": "^9.6.1",
7878
"get-port": "^7.1.0",
7979
"globals": "^16.2.0",
8080
"husky": "^9.1.4",

test/build/config-format/disable-interpret/disable-interpret.test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
const { existsSync, unlinkSync } = require("node:fs");
22
const { resolve } = require("node:path");
33

4-
const execa = require("execa");
54
const { run } = require("../../../utils/test-utils");
65

7-
const { sync: spawnSync } = execa;
8-
96
describe("webpack cli", () => {
107
it('should work with the "disable-interpret" option from flags', async () => {
118
const configFileName = "webpack.config";
129
const configFilePath = resolve(__dirname, `${configFileName}.ts`);
13-
const buildScripts = spawnSync("yarn", ["tsc", configFilePath]);
10+
const { execa } = await import("execa");
11+
const buildScripts = execa("yarn", ["tsc", configFilePath]);
1412
expect(buildScripts.stdout).toBeTruthy();
1513

1614
const { exitCode, stderr, stdout } = await run(__dirname, ["--disable-interpret"]);

test/build/env/array/array-env.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
"use strict";
22

33
const path = require("node:path");
4-
const execa = require("execa");
5-
6-
const { sync: spawnSync } = execa;
74

85
const { run } = require("../../../utils/test-utils");
96

@@ -18,8 +15,9 @@ describe("env array", () => {
1815
expect(stderr).toBeFalsy();
1916
expect(stdout).toBeTruthy();
2017

21-
const devScript = spawnSync("node", [devFile]);
22-
const prodScript = spawnSync("node", [prodFile]);
18+
const { execa } = await import("execa");
19+
const devScript = execa("node", [devFile]);
20+
const prodScript = execa("node", [prodFile]);
2321

2422
expect(devScript.stdout).toBe("environment is development");
2523
expect(prodScript.stdout).toBe("environment is production");

0 commit comments

Comments
 (0)