resolve-tspaths
Advanced tools
Comparing version 0.8.17 to 0.8.18
@@ -20,2 +20,3 @@ "use strict"; | ||
".d.ts", | ||
".json", | ||
]; | ||
@@ -125,3 +126,4 @@ /** | ||
const importPathTs = importPath.replace(/\.[^/.]*js[^/.]*$/, (match) => match.replace("js", "ts")); | ||
const importPathWithExtensions = MODULE_EXTS.map((ext) => `${importPath}${ext}`); | ||
const importPathWithoutFileExtension = importPath.replace(/\.[^/.]*(js|json)[^/.]*$/, ""); | ||
const importPathWithExtensions = MODULE_EXTS.map((ext) => `${importPathWithoutFileExtension}${ext}`); | ||
const possiblePaths = [importPath, importPathTs, ...importPathWithExtensions]; | ||
@@ -128,0 +130,0 @@ const existingPath = possiblePaths.find((path) => isFile(path)); |
{ | ||
"version": "0.8.17" | ||
"version": "0.8.18" | ||
} |
{ | ||
"name": "resolve-tspaths", | ||
"version": "0.8.17", | ||
"version": "0.8.18", | ||
"description": "Transform path mappings in your compiled Typescript code", | ||
@@ -5,0 +5,0 @@ "author": "Ben Yap <contact@benyap.com>", |
@@ -217,2 +217,5 @@ # resolve-tspaths | ||
</tr> | ||
<tr> | ||
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ajsuvarna6"><img src="https://avatars.githubusercontent.com/u/15179597?v=4?s=80" width="80px;" alt="Ajay Dharnappa Poojary"/><br /><sub><b>Ajay Dharnappa Poojary</b></sub></a><br /><a href="https://github.com/benyap/resolve-tspaths/issues?q=author%3Aajsuvarna6" title="Bug reports">🐛</a></td> | ||
</tr> | ||
</tbody> | ||
@@ -219,0 +222,0 @@ </table> |
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
43618
709
236