Skip to content

Commit a46d8b7

Browse files
authored
Revert "Bump execa" (#148)
This reverts commit 4697b5f.
1 parent 76fd23c commit a46d8b7

File tree

6 files changed

+14
-68
lines changed

6 files changed

+14
-68
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": "6.1.0",
69+
"execa": "5.1.1",
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, ExecaReturnValue } from "execa";
2+
import execa 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: ExecaReturnValue<string>) {
69+
function assertTypeScriptBuildResult(result: execa.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, ExecaChildProcess } from "execa";
9+
import execa 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";
@@ -351,7 +351,7 @@ const timeout = `;setTimeout(() => { throw new Error("The Node.js process hangs.
351351
function runRequireJSFileCommand(args: {
352352
cwd: string;
353353
path: string;
354-
}): ExecaChildProcess<string> {
354+
}): execa.ExecaChildProcess<string> {
355355
return execa("node", ["-e", `require('${args.path}')${timeout}`], {
356356
cwd: args.cwd,
357357
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(
@@ -327,14 +327,14 @@ it("can build a monorepo project", async () => {
327327
`);
328328

329329
await execa("node", [binaryFolder, "check"], {
330-
cwd: path.resolve(fixturesFolder, "simple-monorepo"),
330+
cwd: path.resolve(fixturesFolder, "simple-monorepo")
331331
});
332332
});
333333

334334
it("can build an esm only project", async () => {
335335
await fse.remove(path.resolve(fixturesFolder, "simple-esm-only", "dist"));
336336
const result = await execa("node", [binaryFolder, "build"], {
337-
cwd: path.resolve(fixturesFolder, "simple-esm-only"),
337+
cwd: path.resolve(fixturesFolder, "simple-esm-only")
338338
});
339339
expect(result.exitCode).toEqual(0);
340340

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: 2 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,22 +1809,7 @@ 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-
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:
1812+
[email protected], execa@^5.0.0:
18281813
version "5.1.1"
18291814
resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
18301815
integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
@@ -2020,7 +2005,7 @@ get-package-type@^0.1.0:
20202005
resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a"
20212006
integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==
20222007

2023-
get-stream@^6.0.0, get-stream@^6.0.1:
2008+
get-stream@^6.0.0:
20242009
version "6.0.1"
20252010
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
20262011
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
@@ -2145,11 +2130,6 @@ human-signals@^2.1.0:
21452130
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
21462131
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
21472132

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-
21532133
iconv-lite@^0.4.24:
21542134
version "0.4.24"
21552135
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
@@ -2345,11 +2325,6 @@ is-stream@^2.0.0:
23452325
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077"
23462326
integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==
23472327

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-
23532328
is-string@^1.0.5, is-string@^1.0.7:
23542329
version "1.0.7"
23552330
resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
@@ -3005,11 +2980,6 @@ mimic-fn@^2.1.0:
30052980
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
30062981
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
30072982

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-
30132983
min-indent@^1.0.0:
30142984
version "1.0.1"
30152985
resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
@@ -3114,13 +3084,6 @@ npm-run-path@^4.0.1:
31143084
dependencies:
31153085
path-key "^3.0.0"
31163086

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-
31243087
object-assign@^4.0.1:
31253088
version "4.1.1"
31263089
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
@@ -3160,13 +3123,6 @@ onetime@^5.1.2:
31603123
dependencies:
31613124
mimic-fn "^2.1.0"
31623125

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-
31703126
os-tmpdir@~1.0.2:
31713127
version "1.0.2"
31723128
resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274"
@@ -3255,11 +3211,6 @@ path-key@^3.0.0, path-key@^3.1.0:
32553211
resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
32563212
integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
32573213

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-
32633214
path-parse@^1.0.7:
32643215
version "1.0.7"
32653216
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
@@ -3717,11 +3668,6 @@ strip-final-newline@^2.0.0:
37173668
resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad"
37183669
integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==
37193670

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-
37253671
strip-indent@^3.0.0:
37263672
version "3.0.0"
37273673
resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001"

0 commit comments

Comments
 (0)