Skip to content

Commit 6242511

Browse files
authored
fix: use searchStrategy: global to fix breaking change behaviour after upgrading cosmiconfig to 9.0.0 (#4159)
1 parent 95ab1cb commit 6242511

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libs/core/src/lib/project/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ export class Project {
259259
},
260260
},
261261
searchPlaces: ["lerna.json", "package.json"],
262+
searchStrategy: "global", // Fix breaking change behaviour in cosmiconfig@9.0.0
262263
transform(obj) {
263264
// cosmiconfig returns null when nothing is found
264265
if (!obj) {

libs/legacy-core/src/lib/get-filtered-packages.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function buildGraph(cwd: string) {
2323
}
2424

2525
function parseOptions(...args: string[]) {
26-
return filterOptions(yargs().exitProcess(false).showHelpOnFail(false)).parse(args);
26+
return filterOptions(yargs().locale("en").exitProcess(false).showHelpOnFail(false)).parse(args);
2727
}
2828

2929
// working dir is never mutated

0 commit comments

Comments
 (0)