@@ -37421,7 +37421,7 @@ function getCachedConfig() {
3742137421 return cachedConfig;
3742237422}
3742337423var CONFIG_FILE_PATH_MATCHER = ".ng-dev/config.mjs";
37424- async function getConfig(baseDirOrAssertions) {
37424+ async function getConfig(baseDirOrAssertions, returnNullOnConfigNotFound = false ) {
3742537425 let cachedConfig2 = getCachedConfig();
3742637426 if (cachedConfig2 === null) {
3742737427 let baseDir;
@@ -37431,7 +37431,10 @@ async function getConfig(baseDirOrAssertions) {
3743137431 baseDir = determineRepoBaseDirFromCwd();
3743237432 }
3743337433 const configPath = join32(baseDir, CONFIG_FILE_PATH_MATCHER);
37434- cachedConfig2 = await readConfigFile(configPath);
37434+ cachedConfig2 = await readConfigFile(configPath, returnNullOnConfigNotFound);
37435+ if (returnNullOnConfigNotFound && !cachedConfig2) {
37436+ return null;
37437+ }
3743537438 setCachedConfig(cachedConfig2);
3743637439 }
3743737440 if (Array.isArray(baseDirOrAssertions)) {
@@ -37466,14 +37469,14 @@ function assertValidGithubConfig(config) {
3746637469 throw new ConfigValidationError("Invalid `github` configuration", errors);
3746737470 }
3746837471}
37469- async function readConfigFile(configPath, returnEmptyObjectOnError = false) {
37472+ async function readConfigFile(configPath, returnNullOnConfigNotFound = false) {
3747037473 try {
3747137474 return await import(pathToFileURL(configPath).toString());
3747237475 } catch (e) {
37473- if (returnEmptyObjectOnError ) {
37476+ if (returnNullOnConfigNotFound ) {
3747437477 Log.debug(`Could not read configuration file at ${configPath}, returning empty object instead.`);
3747537478 Log.debug(e);
37476- return {} ;
37479+ return null ;
3747737480 }
3747837481 Log.error(`Could not read configuration file at ${configPath}.`);
3747937482 Log.error(e);
@@ -51730,7 +51733,7 @@ content-type/dist/index.js:
5173051733 (* v8 ignore next -- @preserve *)
5173151734 (* v8 ignore else -- @preserve *)
5173251735
51733- @angular/ng-dev/bundles/chunk-PVA34BB2 .mjs:
51736+ @angular/ng-dev/bundles/chunk-2FS7LFXG .mjs:
5173451737 (*! Bundled license information:
5173551738
5173651739 yargs-parser/build/lib/string-utils.js:
@@ -51771,7 +51774,7 @@ content-type/dist/index.js:
5177151774 *)
5177251775 *)
5177351776
51774- @angular/ng-dev/bundles/chunk-4EMV7NEU .mjs:
51777+ @angular/ng-dev/bundles/chunk-WBKY7U4X .mjs:
5177551778 (*! Bundled license information:
5177651779
5177751780 content-type/dist/index.js:
0 commit comments