Problem
Currently, there's no way to disable Prisma's postinstall script globally in a project, meaning I need to specify PRISMA_SKIP_POSTINSTALL_GENERATE every time I npm install.
Suggested solution
Allowing users to specify PRISMA_SKIP_POSTINSTALL_GENERATE in .npmrc would be a good way of solving this issue. Essentially, this is achieved by checking for the npm_config_* counterpart of the environment variable in question.
Alternatives
Not aware of any.
Additional context
I took this idea from other big Node.js packages, such as Cypress: this is their implementation of this feature.