From 2b41925e9b79c6593ba063e9867d56fdafa06778 Mon Sep 17 00:00:00 2001 From: Volker Scheuber Date: Fri, 1 Nov 2024 09:16:40 -0500 Subject: [PATCH] Undo bad mod --- src/ops/ScriptOps.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ops/ScriptOps.ts b/src/ops/ScriptOps.ts index 1456f011..3166153e 100644 --- a/src/ops/ScriptOps.ts +++ b/src/ops/ScriptOps.ts @@ -796,10 +796,9 @@ export async function importScripts({ const isDefault = !options.includeDefault && scriptData.default; // Only import script if the scriptName matches the current script. Note this only applies if we are not importing dependencies since if there are dependencies then we want to import all the scripts in the file. const shouldNotImportScript = - (!options.deps && - ((scriptId && scriptId !== scriptData._id) || - (!scriptId && scriptName && scriptName !== scriptData.name))) || - !(!scriptId && !scriptName); + !options.deps && + ((scriptId && scriptId !== scriptData._id) || + (!scriptId && scriptName && scriptName !== scriptData.name)); if (isDefault || shouldNotImportScript) continue; debugMessage({ message: `ScriptOps.importScripts: Importing script ${scriptData.name} (${existingId})`,