From 8bede4285ec8c29cb47786c580b39dc1d2e5c409 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Mon, 12 Aug 2019 17:13:00 +0100 Subject: [PATCH] fix(NA): dont clean dll module if it is a package json file (#42904) --- .../tasks/nodejs_modules/clean_client_modules_on_dll_task.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js b/src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js index aeab888104373..3ae7d33d24d68 100644 --- a/src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js +++ b/src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js @@ -73,6 +73,10 @@ export const CleanClientModulesOnDLLTask = { for (const relativeEntryPath of dllEntries) { const entryPath = `${baseDir}/${relativeEntryPath}`; + if (entryPath.endsWith('package.json')) { + continue; + } + // Clean a module included into the dll // and then write a blank file for each // entry file present into the dll