Skip to content

Commit

Permalink
fixi(prisma): Set default cwd for runCommand task to base (redwoodjs#…
Browse files Browse the repository at this point in the history
…4604)

Co-authored-by: Aditya Pandey <[email protected]>
  • Loading branch information
dac09 and callingmedic911 authored Mar 1, 2022
1 parent eef3fdf commit 6c5c823
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 6c5c823

Please sign in to comment.