Skip to content

Commit

Permalink
Undo bad mod
Browse files Browse the repository at this point in the history
  • Loading branch information
vscheuber committed Nov 1, 2024
1 parent 03e44a5 commit 2b41925
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/ops/ScriptOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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})`,
Expand Down

0 comments on commit 2b41925

Please sign in to comment.