From 0923e3f9f87fa8c393565d76fd9a21dba7ff8f1e Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Sun, 4 Aug 2024 20:12:57 +0200 Subject: [PATCH] Allow to remove all custom packages (empty list) --- README.md | 1 + main.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0d3fc6f3..192db7ad 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Executes Javascript, Typescript Scripts. --> ### **WORK IN PROGRESS** * (@klein0r) Fixed import scripts dialog +* (@klein0r) Allow to remove all custom packages (empty list) ### 8.7.6 (2024-07-28) * (foxriver76) fix error with subpath imports in scripts diff --git a/main.js b/main.js index 1fd33221..6ec3ff79 100644 --- a/main.js +++ b/main.js @@ -1836,8 +1836,8 @@ async function installNpm(npmLib) { } async function installLibraries() { - if (!adapter.config?.libraries) { - return; + if (typeof adapter.config?.libraries !== 'string') { + adapter.config.libraries = ''; } const libraries = adapter.config.libraries.split(/[,;\s]+/);