Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
feat: Add workspaceDir to runner-bin (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoaresMG authored Mar 19, 2021
1 parent 3756174 commit 8690473
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/runner-bin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export default defineRunner(
const { logger, options, project, workspace, renderTemplate } = ctx;
const { stream, env, longRunning = false } = options;
const [binOption, ...args] = parseOptions(options).map(arg =>
renderTemplate(arg, { projectDir: project.fullPath })
renderTemplate(arg, {
projectDir: project.fullPath,
workspaceDir: workspace.cwd
})
);

const bin = await resolveBin(binOption, workspace.cwd);
Expand Down

0 comments on commit 8690473

Please sign in to comment.