Skip to content

Commit e66a012

Browse files
committed
test(size): migrate to pnp
1 parent ab0b482 commit e66a012

File tree

6 files changed

+2648
-1333
lines changed

6 files changed

+2648
-1333
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
.yarn
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nodeLinker: node-modules
2+
nmHoistingLimits: dependencies

scripts/benchmark-size/runner/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@
1212
"@rollup/plugin-json": "^4.1.0",
1313
"@rollup/plugin-node-resolve": "^13.0.6",
1414
"@types/execa": "^2.0.0",
15+
"@types/node": "^17.0.23",
1516
"esbuild": "latest",
1617
"execa": "^5.1.1",
1718
"fs-extra": "^10.0.0",
1819
"handlebars": "^4.7.7",
1920
"listr2": "^3.13.3",
21+
"prettier": "^2.6.2",
2022
"rollup": "latest",
2123
"rollup-plugin-terser": "^7.0.2",
2224
"semver": "^7.3.5",
23-
"webpack": "latest"
25+
"webpack": "latest",
26+
"yargs": "^17.4.1"
2427
},
2528
"author": "",
2629
"license": "UNLICENSED",
2730
"devDependencies": {
2831
"@types/listr": "^0.14.4"
29-
}
32+
},
33+
"packageManager": "[email protected]"
3034
}

scripts/benchmark-size/runner/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const validateRuntime = async () => {
1919
throw e;
2020
}
2121
try {
22-
await exec("./node_modules/.bin/lerna", ["--version"], {
22+
await exec("yarn", ["lerna", "--version"], {
2323
cwd: PROJECT_ROOT,
2424
});
2525
} catch (e) {

scripts/benchmark-size/runner/workspace.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const loadWorkspacePackages = async (options?: {
2626
scope?: string[];
2727
since?: SinceOption;
2828
}): Promise<WorkspacePackage[]> => {
29-
const args = ["list", "--json"];
29+
const args = ["lerna", "list", "--json"];
3030
if (options?.scope) {
3131
options.scope.forEach((scope) => {
3232
args.push(...["--scope", scope]);
@@ -44,7 +44,7 @@ export const loadWorkspacePackages = async (options?: {
4444
}
4545
}
4646

47-
const { stdout } = await exec("./node_modules/.bin/lerna", args, {
47+
const { stdout } = await exec("yarn", args, {
4848
cwd: PROJECT_ROOT,
4949
encoding: "utf8",
5050
});

0 commit comments

Comments
 (0)