Skip to content

Commit

Permalink
fixi(prisma): Set default cwd for runCommand task to base (#4604)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Pandey <[email protected]>
  • Loading branch information
2 people authored and thedavidprice committed Mar 1, 2022
1 parent 3f891c4 commit fbb0c92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ export const removeRoutesFromRouterTask = (routes, layout) => {

export const runCommandTask = async (commands, { verbose }) => {
const tasks = new Listr(
commands.map(({ title, cmd, args, opts = {} }) => ({
commands.map(({ title, cmd, args, opts = {}, cwd = getPaths().base }) => ({
title,
task: async () => {
return execa(cmd, args, {
shell: true,
cwd: `${getPaths().base}/api`,
cwd,
stdio: verbose ? 'inherit' : 'pipe',
extendEnv: true,
cleanup: true,
Expand Down

0 comments on commit fbb0c92

Please sign in to comment.