Skip to content

Commit 61719d5

Browse files
authored
chore(cli): suppress prisma update message (#456)
* chore(cli): suppress prisma update message * update
1 parent 09dabd8 commit 61719d5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/cli/src/utils/exec-utils.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,19 @@ export function execPrisma(args: string, options?: Omit<ExecSyncOptions, 'env'>
4343
// ignore and fallback
4444
}
4545

46+
const _options = {
47+
...options,
48+
env: {
49+
...options?.env,
50+
PRISMA_HIDE_UPDATE_MESSAGE: '1',
51+
},
52+
};
53+
4654
if (!prismaPath) {
4755
// fallback to npx/bunx execute
48-
execPackage(`prisma ${args}`, options);
56+
execPackage(`prisma ${args}`, _options);
4957
return;
5058
}
5159

52-
execSync(`node ${prismaPath} ${args}`, options);
60+
execSync(`node ${prismaPath} ${args}`, _options);
5361
}

0 commit comments

Comments
 (0)