tsconfig-paths
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -10,2 +10,8 @@ # Change Log | ||
## [4.1.1] - 2022-11-30 | ||
### Fixed | ||
- Skip stat call / throwing an exception when source files don't exist. See PR [#225](https://github.com/dividab/tsconfig-paths/pull/225). Thanks to [@robstolarz](https://github.com/robstolarz) for this PR! | ||
## [4.1.0] - 2022-08-06 | ||
@@ -12,0 +18,0 @@ |
@@ -6,2 +6,6 @@ "use strict"; | ||
function fileExistsSync(path) { | ||
// If the file doesn't exist, avoid throwing an exception over the native barrier for every miss | ||
if (!fs.existsSync(path)) { | ||
return false; | ||
} | ||
try { | ||
@@ -8,0 +12,0 @@ var stats = fs.statSync(path); |
{ | ||
"name": "tsconfig-paths", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Load node modules according to tsconfig paths, in run-time or via API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -36,2 +36,6 @@ import * as fs from "fs"; | ||
export function fileExistsSync(path: string): boolean { | ||
// If the file doesn't exist, avoid throwing an exception over the native barrier for every miss | ||
if (!fs.existsSync(path)) { | ||
return false; | ||
} | ||
try { | ||
@@ -38,0 +42,0 @@ const stats = fs.statSync(path); |
Sorry, the diff of this file is not supported yet
204506
3589