Skip to content

Commit

Permalink
Fix relative node_modules ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Nov 28, 2019
1 parent 30adec7 commit 266eaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export function create (options: CreateOptions = {}): Register {

const isScoped = options.scope ? (relname: string) => relname.charAt(0) !== '.' : () => true
const shouldIgnore = createIgnore(options.skipIgnore ? [] : (
options.ignore || ['/node_modules/']
options.ignore || ['(?:^|/)node_modules/']
).map(str => new RegExp(str)))

const diagnosticHost: _ts.FormatDiagnosticsHost = {
Expand Down

0 comments on commit 266eaa5

Please sign in to comment.