Skip to content

Commit a426bb6

Browse files
committed
Use the config file path to determine the workingDir, then the package.json path
1 parent d2c495b commit a426bb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/cli-v3/src/config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,11 @@ async function resolveConfig(
142142
const lockfilePath = await resolveLockfile(cwd);
143143
const workspaceDir = await findWorkspaceDir(cwd);
144144

145-
const workingDir = packageJsonPath ? dirname(packageJsonPath) : cwd;
145+
const workingDir = result.configFile
146+
? dirname(result.configFile)
147+
: packageJsonPath
148+
? dirname(packageJsonPath)
149+
: cwd;
146150

147151
const config =
148152
"config" in result.config ? (result.config.config as TriggerConfig) : result.config;

0 commit comments

Comments
 (0)