Skip to content

Commit

Permalink
fix: use compilerOptions.rootDir to filter files
Browse files Browse the repository at this point in the history
When compilerOptions.rootDir is specified, it is used instead of process.cwd() to filter files. 

Possible fix for ezolenko#237
  • Loading branch information
NicolasThierion committed Oct 24, 2020
1 parent 35b04d7 commit 05cc046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-options-overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ export function createFilter(context: IContext, pluginOptions: IOptions, parsedC

context.debug(() => `included:\n${JSON.stringify(included, undefined, 4)}`);
context.debug(() => `excluded:\n${JSON.stringify(excluded, undefined, 4)}`);
return createRollupFilter(included, excluded);
return createRollupFilter(included, excluded, { resolve: parsedConfig.options.rootDir });
}

0 comments on commit 05cc046

Please sign in to comment.