Skip to content

Commit

Permalink
Fix abs extended tsconfig paths if internal (resolves #689)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jun 21, 2024
1 parent a4111fe commit d1261c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/knip/src/plugins/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ const getExtends = async (configFilePath: string, internalExtends = new Set<stri
}
}

for (const extend of extends_) internalExtends.add(extend);
for (const extend of extends_) {
if (isInternal(extend)) internalExtends.add(toAbsolute(extend, dirname(configFilePath)));
else internalExtends.add(extend);
}

return internalExtends;
};

Expand Down

0 comments on commit d1261c1

Please sign in to comment.