devDependencies

Packages listed in package.json that are needed only to build or test the app, such as TypeScript or a test runner.

In more detail

They are installed during development and builds but are not needed to run the finished app. Leaving them out of production images makes those images smaller and safer.

Example

The Next.js builder stage needs them for next build; the runner stage does not.

Related terms

Taught in

References