Skip to content

Commit a77aa07

Browse files
committedNov 11, 2023
Improve lazy ignore pattern builder
1 parent a8b46a9 commit a77aa07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
9393
// Pattern: ./module.js, /abs/path/to/module.js, /abs/path/to/module/index.js, ./module.ts, ./module.d.ts
9494
const filePath = principal.resolveModule(specifier, containingFilePath)?.resolvedFileName;
9595
if (filePath) {
96-
const ignorePatterns = workspace.config.ignore.map(pattern => join(dirname(containingFilePath), pattern));
96+
const ignorePatterns = workspace.config.ignore.map(pattern => join(workspace.dir, pattern));
9797
const isIgnored = micromatch.isMatch(filePath, ignorePatterns);
9898
if (!isIgnored) principal.addEntryPath(filePath);
9999
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.