Stat path to check it is a file

This commit is contained in:
Michael B. Gale
2026-07-14 23:05:32 +01:00
parent e7b365e1d1
commit f4c56016f3
2 changed files with 5 additions and 2 deletions

2
lib/entry-points.js generated
View File

@@ -149242,7 +149242,7 @@ async function loadUserConfig(actionState, configFile, workspacePath, apiDetails
} else if (isLocal(configFile)) {
const localFilePath = path10.resolve(workspacePath, configFile);
const workspaceRelative = isWorkspaceRelative(localFilePath);
if (workspaceRelative && fs9.existsSync(localFilePath)) {
if (workspaceRelative && fs9.statSync(localFilePath, { throwIfNoEntry: false })?.isFile()) {
configFile = localFilePath;
localFile = true;
} else {