Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix relative node_modules ignore
  • 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
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.