@file-services/typescript
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -45,5 +45,13 @@ "use strict"; | ||
} | ||
function realpath(path) { | ||
try { | ||
return realpathSync(path); | ||
} | ||
catch (e) { | ||
return path; | ||
} | ||
} | ||
return { | ||
readDirectory(rootDir, extensions, excludes, includes, depth) { | ||
return typescript_1.default.matchFiles(rootDir, extensions, excludes, includes, caseSensitive, rootDir, depth, getFileSystemEntries, realpathSync); | ||
return typescript_1.default.matchFiles(rootDir, extensions, excludes, includes, caseSensitive, rootDir, depth, getFileSystemEntries, realpath); | ||
}, | ||
@@ -75,10 +83,3 @@ getDirectories(path) { | ||
getNewLine: defaultGetNewLine, | ||
realpath(path) { | ||
try { | ||
return realpathSync(path); | ||
} | ||
catch (e) { | ||
return path; | ||
} | ||
}, | ||
realpath, | ||
dirname, | ||
@@ -85,0 +86,0 @@ normalize, |
@@ -40,5 +40,13 @@ import ts from 'typescript'; | ||
} | ||
function realpath(path) { | ||
try { | ||
return realpathSync(path); | ||
} | ||
catch (e) { | ||
return path; | ||
} | ||
} | ||
return { | ||
readDirectory(rootDir, extensions, excludes, includes, depth) { | ||
return ts.matchFiles(rootDir, extensions, excludes, includes, caseSensitive, rootDir, depth, getFileSystemEntries, realpathSync); | ||
return ts.matchFiles(rootDir, extensions, excludes, includes, caseSensitive, rootDir, depth, getFileSystemEntries, realpath); | ||
}, | ||
@@ -70,10 +78,3 @@ getDirectories(path) { | ||
getNewLine: defaultGetNewLine, | ||
realpath(path) { | ||
try { | ||
return realpathSync(path); | ||
} | ||
catch (e) { | ||
return path; | ||
} | ||
}, | ||
realpath, | ||
dirname, | ||
@@ -80,0 +81,0 @@ normalize, |
{ | ||
"name": "@file-services/typescript", | ||
"description": "Helpers for creation of TypeScript hosts", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "cjs/index.js", | ||
@@ -31,3 +31,3 @@ "module": "esm/index.js", | ||
"sideEffects": false, | ||
"gitHead": "88e0da544cc1bca4ed60020ee7d4a46119dd0042" | ||
"gitHead": "aa35ca11cf05424cdd867d8648c31273aedc5183" | ||
} |
@@ -74,2 +74,10 @@ import ts from 'typescript'; | ||
function realpath(path: string): string { | ||
try { | ||
return realpathSync(path); | ||
} catch (e) { | ||
return path; | ||
} | ||
} | ||
return { | ||
@@ -86,3 +94,3 @@ readDirectory(rootDir, extensions, excludes, includes, depth) { | ||
getFileSystemEntries, | ||
realpathSync | ||
realpath | ||
); | ||
@@ -113,9 +121,3 @@ }, | ||
getNewLine: defaultGetNewLine, | ||
realpath(path: string) { | ||
try { | ||
return realpathSync(path); | ||
} catch (e) { | ||
return path; | ||
} | ||
}, | ||
realpath, | ||
dirname, | ||
@@ -122,0 +124,0 @@ normalize, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33000
483