Skip to content

Commit

Permalink
Use the config file path to determine the workingDir, then the packag…
Browse files Browse the repository at this point in the history
…e.json path
  • Loading branch information
ericallam committed Nov 12, 2024
1 parent d2c495b commit a426bb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/cli-v3/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ async function resolveConfig(
const lockfilePath = await resolveLockfile(cwd);
const workspaceDir = await findWorkspaceDir(cwd);

const workingDir = packageJsonPath ? dirname(packageJsonPath) : cwd;
const workingDir = result.configFile
? dirname(result.configFile)
: packageJsonPath
? dirname(packageJsonPath)
: cwd;

const config =
"config" in result.config ? (result.config.config as TriggerConfig) : result.config;
Expand Down

0 comments on commit a426bb6

Please sign in to comment.