Skip to content

Commit

Permalink
Fix none-node_module imports of built ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Pajn committed Oct 26, 2017
1 parent d946cb6 commit bc926d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function isJsImplementationOfTypings(
tsResolution: ResolvedModule
) {
return resolvedModule.resolvedFileName.endsWith('js') &&
/node_modules(\\|\/).*\.d\.ts$/.test(tsResolution.resolvedFileName);
/\.d\.ts$/.test(tsResolution.resolvedFileName);
}

type ResolutionStrategy = (resolutionResult: ResolvedModule | undefined, tsResolutionResult: ResolvedModule) => ResolvedModule;
Expand Down

0 comments on commit bc926d0

Please sign in to comment.