Skip to content

Commit 9ed7758

Browse files
committed
Merge branch 'ts-monorepo-deps' of github.com:asger-semmle/ql into ts-monorepo-deps
2 parents 3ca5a3d + 5448bff commit 9ed7758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • javascript/extractor/lib/typescript/src

javascript/extractor/lib/typescript/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function handleOpenProjectCommand(command: OpenProjectCommand) {
296296
|| redirectNodeModulesPath(path) != null;
297297
},
298298
readFile: (path: string) => {
299-
if (!fs.existsSync(path)) {
299+
if (!ts.sys.fileExists(path)) {
300300
let virtualPath = virtualSourceRoot.toVirtualPathIfFileExists(path);
301301
if (virtualPath != null) return ts.sys.readFile(virtualPath);
302302
virtualPath = redirectNodeModulesPath(path);

0 commit comments

Comments
 (0)