Skip to content

chore: change prisma generate command to use npm exec#1065

Merged
kentcdodds merged 1 commit intoepicweb-dev:mainfrom
CodingAleCR:patch-2
Dec 10, 2025
Merged

chore: change prisma generate command to use npm exec#1065
kentcdodds merged 1 commit intoepicweb-dev:mainfrom
CodingAleCR:patch-2

Conversation

@CodingAleCR
Copy link
Contributor

This change replaces usages of npx with npm exec inside the Dockerfile to align with modern npm best practices and improve build determinism, security, and predictability.

Motivation

npx may implicitly download and execute the latest version of a CLI at build time, which can introduce breaking changes without warning. This recently surfaced when Prisma released v7 of its CLI, causing unexpected breakage in an existing project.

Using npm exec ensures that only explicitly installed and lockfile-pinned dependencies are executed during the Docker build, reducing the risk of supply-chain surprises and improving reproducibility in CI environments.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great call

@kentcdodds kentcdodds merged commit bc2b020 into epicweb-dev:main Dec 10, 2025
6 checks passed
@kentcdodds
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants