Created
July 31, 2025 17:27
-
-
Save vinnymac/8ce3b11c5af71088a45d6a30f3bd5f72 to your computer and use it in GitHub Desktop.
Yarn patch to more easily opt out of noise with `PRISMA_OPT_OUT` env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/build/index.js b/build/index.js | |
index 3a8c0aa29a193b534bf698dac9b8167d2129ee6d..9e2b773ac3ed9d6bc0a54b59b6224f0e3986ce9a 100755 | |
--- a/build/index.js | |
+++ b/build/index.js | |
@@ -4744,7 +4744,7 @@ Please run \`${$t("prisma generate")}\` to see the errors.`),"";if(u)this.logTex | |
`;else throw P}let _=!1;if(x)try{let P=aar();if(P&&typeof P=="string"){let[k,I]=P.split(".");parseInt(k)==2&&parseInt(I)<12&&(_=!0)}}catch{}if(a&&_&&Ns.should.warn())return"There have been breaking changes in Prisma Client since you updated last time.\nPlease run `prisma generate` manually.";let C=` | |
${ge("Watching...")} ${de(f.schemaRootDir)} | |
-`,F=i["--no-hints"]??!1;if(u){zp(C+` | |
+`,F=i["--no-hints"]||!!process.env.PRISMA_OPT_OUT??!1;if(u){zp(C+` | |
`+this.logText);let P=new a8(f.schemaRootDir);i["--sql"]&&P.add(XHe(f.schemaRootDir));for await(let k of P){zp(`Change in ${p8.default.relative(process.cwd(),k)}`);let I;try{if(i["--sql"]&&(E=await Fie(g,f)),I=await Zm({schemaContext:f,printDownloadProgress:!u,version:goe.enginesVersion,generatorNames:i["--generator"],typedSql:E,registry:V0.toInternal()}),!I||I.length===0)this.logText+=`${E3} | |
`;else{zp(` | |
${ge("Building...")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment