Skip to content

Commit 4697b5f

Browse files
authored
Bump execa (#142)
1 parent 3025570 commit 4697b5f

File tree

6 files changed

+68
-14
lines changed

6 files changed

+68
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@types/mkdirp": "1.0.2",
6767
"@types/node": "16.11.58",
6868
"@types/yargs": "15.0.14",
69-
"execa": "5.1.1",
69+
"execa": "6.1.0",
7070
"jest": "28.1.3",
7171
"rimraf": "3.0.2",
7272
"ts-jest": "28.0.8",

src/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as assert from "assert";
2-
import execa from "execa";
2+
import { execa, ExecaReturnValue } from "execa";
33
import * as fse from "fs-extra";
44
import globby from "globby";
55
import pLimit from "p-limit";
@@ -66,7 +66,7 @@ function compilerOptionsToArgs(
6666
return args;
6767
}
6868

69-
function assertTypeScriptBuildResult(result: execa.ExecaReturnValue<string>) {
69+
function assertTypeScriptBuildResult(result: ExecaReturnValue<string>) {
7070
if (result.exitCode !== 0) {
7171
console.log("TypeScript compiler exited with non-zero exit code.");
7272
console.log(result.stdout);

src/commands/check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createCommand } from "../command";
66
import { presetFields } from "./bootstrap";
77
import path from "path";
88
import pLimit from "p-limit";
9-
import execa from "execa";
9+
import { execa, ExecaChildProcess } from "execa";
1010
import { getRootPackageJSON } from "../utils/get-root-package-json";
1111
import { getWorkspaces } from "../utils/get-workspaces";
1212
import { getWorkspacePackagePaths } from "../utils/get-workspace-package-paths";
@@ -340,7 +340,7 @@ const timeout = `;setTimeout(() => { throw new Error("The Node.js process hangs.
340340
function runRequireJSFileCommand(args: {
341341
cwd: string;
342342
path: string;
343-
}): execa.ExecaChildProcess<string> {
343+
}): ExecaChildProcess<string> {
344344
return execa("node", ["-e", `require('${args.path}')${timeout}`], {
345345
cwd: args.cwd,
346346
reject: false,

test/integration.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from "path";
2-
import execa from "execa";
2+
import { execa } from "execa";
33
import * as fse from "fs-extra";
44

55
jest.setTimeout(10_000);
@@ -10,7 +10,7 @@ const binaryFolder = path.join(__dirname, "..", "dist", "index.js");
1010
it("can bundle a simple project", async () => {
1111
await fse.remove(path.resolve(fixturesFolder, "simple", "dist"));
1212
const result = await execa("node", [binaryFolder, "build"], {
13-
cwd: path.resolve(fixturesFolder, "simple")
13+
cwd: path.resolve(fixturesFolder, "simple"),
1414
});
1515
expect(result.exitCode).toEqual(0);
1616
const baseDistPath = path.resolve(fixturesFolder, "simple", "dist");
@@ -93,7 +93,7 @@ it("can bundle a simple project", async () => {
9393
}"
9494
`);
9595
await execa("node", [binaryFolder, "check"], {
96-
cwd: path.resolve(fixturesFolder, "simple")
96+
cwd: path.resolve(fixturesFolder, "simple"),
9797
});
9898
});
9999

@@ -105,7 +105,7 @@ it("can build a monorepo project", async () => {
105105
path.resolve(fixturesFolder, "simple-monorepo", "b", "dist")
106106
);
107107
const result = await execa("node", [binaryFolder, "build"], {
108-
cwd: path.resolve(fixturesFolder, "simple-monorepo")
108+
cwd: path.resolve(fixturesFolder, "simple-monorepo"),
109109
});
110110
expect(result.exitCode).toEqual(0);
111111
const baseDistAPath = path.resolve(
@@ -295,14 +295,14 @@ it("can build a monorepo project", async () => {
295295
`);
296296

297297
await execa("node", [binaryFolder, "check"], {
298-
cwd: path.resolve(fixturesFolder, "simple-monorepo")
298+
cwd: path.resolve(fixturesFolder, "simple-monorepo"),
299299
});
300300
});
301301

302302
it("can build an esm only project", async () => {
303303
await fse.remove(path.resolve(fixturesFolder, "simple-esm-only", "dist"));
304304
const result = await execa("node", [binaryFolder, "build"], {
305-
cwd: path.resolve(fixturesFolder, "simple-esm-only")
305+
cwd: path.resolve(fixturesFolder, "simple-esm-only"),
306306
});
307307
expect(result.exitCode).toEqual(0);
308308

test/ts-tests/run-tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import execa from "execa";
1+
import { execa } from "execa";
22
import path from "node:path";
33
import { fileURLToPath } from "node:url";
44

yarn.lock

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,22 @@ estree-walker@^2.0.1:
18091809
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
18101810
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
18111811

1812-
[email protected], execa@^5.0.0:
1812+
1813+
version "6.1.0"
1814+
resolved "https://registry.yarnpkg.com/execa/-/execa-6.1.0.tgz#cea16dee211ff011246556388effa0818394fb20"
1815+
integrity sha512-QVWlX2e50heYJcCPG0iWtf8r0xjEYfz/OYLGDYH+IyjWezzPNxz63qNFOu0l4YftGWuizFVZHHs8PrLU5p2IDA==
1816+
dependencies:
1817+
cross-spawn "^7.0.3"
1818+
get-stream "^6.0.1"
1819+
human-signals "^3.0.1"
1820+
is-stream "^3.0.0"
1821+
merge-stream "^2.0.0"
1822+
npm-run-path "^5.1.0"
1823+
onetime "^6.0.0"
1824+
signal-exit "^3.0.7"
1825+
strip-final-newline "^3.0.0"
1826+
1827+
execa@^5.0.0:
18131828
version "5.1.1"
18141829
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
18151830
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
@@ -2005,7 +2020,7 @@ get-package-type@^0.1.0:
20052020
resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a"
20062021
integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==
20072022

2008-
get-stream@^6.0.0:
2023+
get-stream@^6.0.0, get-stream@^6.0.1:
20092024
version "6.0.1"
20102025
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
20112026
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
@@ -2130,6 +2145,11 @@ human-signals@^2.1.0:
21302145
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
21312146
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
21322147

2148+
human-signals@^3.0.1:
2149+
version "3.0.1"
2150+
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-3.0.1.tgz#c740920859dafa50e5a3222da9d3bf4bb0e5eef5"
2151+
integrity sha512-rQLskxnM/5OCldHo+wNXbpVgDn5A17CUoKX+7Sokwaknlq7CdSnphy0W39GU8dw59XiCXmFXDg4fRuckQRKewQ==
2152+
21332153
iconv-lite@^0.4.24:
21342154
version "0.4.24"
21352155
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
@@ -2325,6 +2345,11 @@ is-stream@^2.0.0:
23252345
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
23262346
integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==
23272347

2348+
is-stream@^3.0.0:
2349+
version "3.0.0"
2350+
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac"
2351+
integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==
2352+
23282353
is-string@^1.0.5, is-string@^1.0.7:
23292354
version "1.0.7"
23302355
resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
@@ -2980,6 +3005,11 @@ mimic-fn@^2.1.0:
29803005
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
29813006
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
29823007

3008+
mimic-fn@^4.0.0:
3009+
version "4.0.0"
3010+
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc"
3011+
integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==
3012+
29833013
min-indent@^1.0.0:
29843014
version "1.0.1"
29853015
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
@@ -3084,6 +3114,13 @@ npm-run-path@^4.0.1:
30843114
dependencies:
30853115
path-key "^3.0.0"
30863116

3117+
npm-run-path@^5.1.0:
3118+
version "5.1.0"
3119+
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.1.0.tgz#bc62f7f3f6952d9894bd08944ba011a6ee7b7e00"
3120+
integrity sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==
3121+
dependencies:
3122+
path-key "^4.0.0"
3123+
30873124
object-assign@^4.0.1:
30883125
version "4.1.1"
30893126
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
@@ -3123,6 +3160,13 @@ onetime@^5.1.2:
31233160
dependencies:
31243161
mimic-fn "^2.1.0"
31253162

3163+
onetime@^6.0.0:
3164+
version "6.0.0"
3165+
resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4"
3166+
integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==
3167+
dependencies:
3168+
mimic-fn "^4.0.0"
3169+
31263170
os-tmpdir@~1.0.2:
31273171
version "1.0.2"
31283172
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
@@ -3211,6 +3255,11 @@ path-key@^3.0.0, path-key@^3.1.0:
32113255
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
32123256
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
32133257

3258+
path-key@^4.0.0:
3259+
version "4.0.0"
3260+
resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18"
3261+
integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==
3262+
32143263
path-parse@^1.0.7:
32153264
version "1.0.7"
32163265
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
@@ -3668,6 +3717,11 @@ strip-final-newline@^2.0.0:
36683717
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad"
36693718
integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==
36703719

3720+
strip-final-newline@^3.0.0:
3721+
version "3.0.0"
3722+
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd"
3723+
integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==
3724+
36713725
strip-indent@^3.0.0:
36723726
version "3.0.0"
36733727
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001"

0 commit comments

Comments
 (0)