From d5e99bb3d2d18de769a9f7def7d585f40d73d3d7 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Mon, 12 Aug 2019 21:01:55 +0100 Subject: [PATCH] fix(NA): dont clean dll module if it is a package json file (#42904) (#43115) --- .../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