@pmate/cli 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9633,9 +9633,10 @@ function loadRepoConfig(cwd) {
|
|
|
9633
9633
|
return normalizeRepoConfig(parsed, paths.configPath);
|
|
9634
9634
|
}
|
|
9635
9635
|
function loadAppConfig(cwd, options = {}) {
|
|
9636
|
-
const
|
|
9636
|
+
const searchParents = options.searchParents ?? true;
|
|
9637
|
+
const paths = findRepoConfigPaths(cwd, searchParents);
|
|
9637
9638
|
if (!paths) {
|
|
9638
|
-
const suffix =
|
|
9639
|
+
const suffix = searchParents ? " or parent directories" : "";
|
|
9639
9640
|
throw new Error(`No .pmate.yaml found in ${cwd}${suffix}`);
|
|
9640
9641
|
}
|
|
9641
9642
|
const parsed = loadMergedRepoYaml(paths);
|