Skip to content

Commit f2c9924

Browse files
committed
no hardened on read workspace
1 parent ffd483a commit f2c9924

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

workspaces/util/src/readWorkspaces.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { getLines } from "@code-chronicles/util/getLines";
55
import { execWithArgsOrThrowOnNzec } from "@code-chronicles/util/execWithArgsOrThrowOnNzec";
66

77
export async function readWorkspaces(): Promise<string[]> {
8-
const yarnCommandResult = await execWithArgsOrThrowOnNzec("yarn", [
9-
"workspaces",
10-
"list",
11-
"--json",
12-
]);
8+
const yarnCommandResult = await execWithArgsOrThrowOnNzec(
9+
"yarn",
10+
["workspaces", "list", "--json"],
11+
{ env: { ...process.env, YARN_ENABLE_HARDENED_MODE: "0" } },
12+
);
1313

1414
console.log(yarnCommandResult);
1515

0 commit comments

Comments
 (0)