diff --git a/packages/next/src/executors/build/lib/create-package-json.ts b/packages/next/src/executors/build/lib/create-package-json.ts index 89f512fc055e4..1c94c82d6934e 100644 --- a/packages/next/src/executors/build/lib/create-package-json.ts +++ b/packages/next/src/executors/build/lib/create-package-json.ts @@ -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); }