Skip to content

Commit

Permalink
fix(nextjs): include typescript in build package.json (#7130)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirjai committed Sep 24, 2021
1 parent 8d0b421 commit e1553a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/next/src/executors/build/lib/create-package-json.ts
Expand Up @@ -25,8 +25,14 @@ export async function createPackageJson(
const nrwlWorkspaceNode = depGraph.nodes['npm:@nrwl/workspace'];

if (nrwlWorkspaceNode) {
packageJson.devDependencies['@nrwl/workspace'] =
packageJson.dependencies['@nrwl/workspace'] =
nrwlWorkspaceNode.data.version;
}

const typescriptNode = depGraph.nodes['npm:typescript'];
if (typescriptNode) {
packageJson.dependencies['typescript'] = typescriptNode.data.version;
}

writeJsonFile(`${options.outputPath}/package.json`, packageJson);
}

0 comments on commit e1553a0

Please sign in to comment.