Skip to content

Commit

Permalink
fix(nextjs): ensure no dev deps in prod package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Dec 15, 2022
1 parent 5d64b1e commit 4dc92e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/executors/build/build.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default async function buildExecutor(
context.projectGraph,
{
root: context.root,
isProduction: options.includeDevDependenciesInPackageJson, // By default we remove devDependencies since this is a production build.
isProduction: !options.includeDevDependenciesInPackageJson, // By default we remove devDependencies since this is a production build.
}
);
updatePackageJson(builtPackageJson, context);
Expand Down

0 comments on commit 4dc92e9

Please sign in to comment.