Skip to content

Allow specifying PRISMA_SKIP_POSTINSTALL_GENERATE in .npmrc #18136

@invakid404

Description

@invakid404

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions