Skip to content

Commit

Permalink
fix: don't join absolute paths with baseUrl (#184)
Browse files Browse the repository at this point in the history
* fix: don't join absolute paths with base

* fix curves

* fix curves

* Update src/mapping-entry.ts

Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Alec Larson <1925840+aleclarson@users.noreply.github.com>
  • Loading branch information
npdev453 and aleclarson committed Apr 21, 2022
1 parent 98bbcdc commit 9a6d9f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
- Ability to use absolute paths. [#184](https://github.com/dividab/tsconfig-paths/pull/184)

- Add support for `jsconfig.json`. See PR [#199](https://github.com/dividab/tsconfig-paths/pull/199). Thanks to [@F3n67u](https://github.com/F3n67u) for this PR!

Expand Down
2 changes: 1 addition & 1 deletion src/mapping-entry.ts
Expand Up @@ -33,7 +33,7 @@ export function getAbsoluteMappingEntries(
absolutePaths.push({
pattern: key,
paths: paths[key].map((pathToResolve) =>
path.join(absoluteBaseUrl, pathToResolve)
path.resolve(absoluteBaseUrl, pathToResolve)
),
});
}
Expand Down

0 comments on commit 9a6d9f8

Please sign in to comment.