We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
webpro
Learn more about funding links in repositories.
Report abuse
1 parent 5f2cf34 commit 052375fCopy full SHA for 052375f
packages/knip/src/index.ts
@@ -347,11 +347,11 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
347
dependencies,
348
manifestScriptNames,
349
};
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);
+ const inputs = _getInputsFromScripts(scripts, options);
+ for (const input of inputs) {
+ input.containingFilePath = filePath;
+ input.dir = cwd;
+ const specifierFilePath = getReferencedInternalFilePath(input, workspace);
355
if (specifierFilePath) analyzeSourceFile(specifierFilePath, principal);
356
}
357
0 commit comments