From 98a51feb1b1791214e0de986b195a051a0717c64 Mon Sep 17 00:00:00 2001 From: Colum Ferry Date: Wed, 24 Jul 2024 10:22:39 +0100 Subject: [PATCH] fix(vite): respect existing package.json type #27057 --- packages/vite/src/executors/build/build.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/executors/build/build.impl.ts b/packages/vite/src/executors/build/build.impl.ts index bd5b0cd8bd3fa..e5f8e9eb36994 100644 --- a/packages/vite/src/executors/build/build.impl.ts +++ b/packages/vite/src/executors/build/build.impl.ts @@ -129,7 +129,7 @@ export async function* viteBuildExecutor( } ); - builtPackageJson.type = 'module'; + builtPackageJson.type ??= 'module'; writeJsonFile( `${outDirRelativeToWorkspaceRoot}/package.json`,