Skip to content

Commit 052375f

Browse files
committedJan 15, 2025
Minor refactor
1 parent 5f2cf34 commit 052375f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎packages/knip/src/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
347347
dependencies,
348348
manifestScriptNames,
349349
};
350-
const specifiers = _getInputsFromScripts(scripts, options);
351-
for (const specifier of specifiers) {
352-
specifier.containingFilePath = filePath;
353-
specifier.dir = cwd;
354-
const specifierFilePath = getReferencedInternalFilePath(specifier, workspace);
350+
const inputs = _getInputsFromScripts(scripts, options);
351+
for (const input of inputs) {
352+
input.containingFilePath = filePath;
353+
input.dir = cwd;
354+
const specifierFilePath = getReferencedInternalFilePath(input, workspace);
355355
if (specifierFilePath) analyzeSourceFile(specifierFilePath, principal);
356356
}
357357
}

0 commit comments

Comments
 (0)
Please sign in to comment.