tsconfig-paths
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -89,3 +89,5 @@ "use strict"; | ||
var file = path.join(physicalPath, packageJson.main); | ||
return file.replace(path.extname(file), ""); | ||
var fileExtension = path.extname(file).replace(/^\./, ""); | ||
var fileExtensionRegex = new RegExp("." + fileExtension + "$"); | ||
return fileExtension ? file.replace(fileExtensionRegex, "") : file; | ||
} | ||
@@ -92,0 +94,0 @@ var indexPath = path.join(physicalPath, "/index"); |
{ | ||
"name": "tsconfig-paths", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Load node modules according to tsconfig paths, in run-time or via API.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
30795
236