typescript-transform-paths
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.1.11](https://github.com/LeDDGroup/typescript-transform-paths/compare/v1.1.10...v1.1.11) (2019-10-09) | ||
### Bug Fixes | ||
* not working with files with multiple extensions ([#37](https://github.com/LeDDGroup/typescript-transform-paths/issues/37)) ([97454c7](https://github.com/LeDDGroup/typescript-transform-paths/commit/97454c7)) | ||
### [1.1.10](https://github.com/LeDDGroup/typescript-transform-paths/compare/v1.1.9...v1.1.10) (2019-08-20) | ||
@@ -7,0 +14,0 @@ |
@@ -45,6 +45,3 @@ "use strict"; | ||
function fileExists(s) { | ||
// if has extensions, file must exist | ||
if (path_1.extname(s) !== "") | ||
return fs_1.existsSync(s); | ||
// else check for implicit extensions .ts, .dts, etc... | ||
// check for implicit extensions .ts, .dts, etc... | ||
for (var _i = 0, implicitExtensions_1 = implicitExtensions; _i < implicitExtensions_1.length; _i++) { | ||
@@ -55,2 +52,5 @@ var ext = implicitExtensions_1[_i]; | ||
} | ||
// else if has extensions, file must exist | ||
if (path_1.extname(s) !== "") | ||
return fs_1.existsSync(s); | ||
return false; | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "typescript-transform-paths", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "Transforms absolute imports to relative", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -5,5 +5,6 @@ # typescript-transform-paths | ||
[![Build Status](https://img.shields.io/travis/LeDDGroup/typescript-transform-paths/master.svg)](https://travis-ci.org/LeDDGroup/typescript-transform-paths) | ||
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/4i7egn9rn7iepg31/branch/master?svg=true)](https://ci.appveyor.com/project/danielpza/typescript-transform-paths/branch/master) | ||
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) | ||
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-8-orange.svg?style=flat-square)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors) | ||
@@ -87,2 +88,3 @@ Transforms absolute imports to relative from `paths` in your tsconfig.json | ||
<td align="center"><a href="http://codepen.io/viT-1/"><img src="https://avatars1.githubusercontent.com/u/19496430?v=4" width="100px;" alt="Vitaly Pinchuk"/><br /><sub><b>Vitaly Pinchuk</b></sub></a><br /><a href="https://github.com/LeDDGroup/typescript-transform-paths/issues?q=author%3AviT-1" title="Bug reports">🐛</a></td> | ||
<td align="center"><a href="https://github.com/laij84"><img src="https://avatars0.githubusercontent.com/u/18145822?v=4" width="100px;" alt="laij84"/><br /><sub><b>laij84</b></sub></a><br /><a href="https://github.com/LeDDGroup/typescript-transform-paths/issues?q=author%3Alaij84" title="Bug reports">🐛</a></td> | ||
</tr> | ||
@@ -89,0 +91,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
23398
94