Skip to content

Commit

Permalink
fix(nextjs): ensure no dev deps in prod package.json (#13851)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Dec 15, 2022
1 parent 70e1aab commit 565652f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/executors/build/build.impl.ts
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 565652f

Please sign in to comment.