Skip to content

Commit

Permalink
[minor] log prisma command outputs to the terminal, set cwd to the di…
Browse files Browse the repository at this point in the history
…r of the schema path
  • Loading branch information
electrovir committed Jan 11, 2025
1 parent 3562fe0 commit bc8f323
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/node/src/prisma/run-prisma-command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {log} from '@augment-vir/common';
import {dirname} from 'node:path';
import {interpolationSafeWindowsPath} from '../augments/path/os-path.js';
import {runShellCommand, type ShellOutput} from '../augments/terminal/shell.js';
import {PrismaSchemaError} from './prisma-errors.js';
Expand Down Expand Up @@ -35,6 +36,8 @@ export async function runPrismaCommand(
...process.env,
...env,
},
hookUpToConsole: true,
cwd: schemaFilePath ? dirname(schemaFilePath) : process.cwd(),
});

return verifyOutput(schemaFilePath || '', result, ignoreExitCode);
Expand Down

0 comments on commit bc8f323

Please sign in to comment.