typescript-transform-paths

Transforms module resolution paths using TypeScript path mapping and/or custom paths

MIT License

Downloads
864.3K
Stars
479
Committers
13

Bot releases are hidden (Show)

typescript-transform-paths - v3.5.1 Latest Release

Published by danielpza about 1 month ago

compare changes

🩹 Fixes

  • Downgrade minimatch from 10.0.1 to 9.0.5 (#272)

💅 Refactors

  • Always patch (ed3ed1f)
  • Rename typescript-number to typescript-x (36643ff)
  • Use strictest typescript configuration (a67e739)
  • Enable @typescript-eslint/no-explicit-any warning (1cddaac)
  • Add eslint-plugin-unicorn (44ad2e0)
  • Remove anys (07e5c27)

🏡 Chore

  • Rename nx test project to avoid conflict with package name (3ee03d1)
  • deps-dev: Bump typescript-eslint from 8.1.0 to 8.2.0 (#249)
  • deps-dev: Bump @types/node from 22.2.0 to 22.4.1 (#248)
  • Add danielpza to funding.yml (9aa6941)
  • deps-dev: Bump typescript-eslint from 8.2.0 to 8.3.0 (#254)
  • deps-dev: Bump @types/node from 22.4.1 to 22.5.0 (#253)
  • deps-dev: Update some dependencies (164aeac)
  • Remove eslint-plugin-unicorn (8c6ccf4)

❤️ Contributors

typescript-transform-paths - v3.5.0

Published by danielpza 2 months ago

compare changes

🚀 Enhancements

  • Add package.json exports (#218)

💅 Refactors

  • Move top level register and nx-transformer to src/ (6f0a280)
  • Add prettier-plugin-jsdoc (0b5fd4c)
  • Remove ts-expose-internals imports (7b66926)
  • Update ts-expose-internals -> @types/ts-expose-internals (56d62d2)

🏡 Chore

  • deps-dev: Remove strip-ansi (2fc9901)

❤️ Contributors

typescript-transform-paths - v3.4.11

Published by danielpza 2 months ago

compare changes

💅 Refactors

  • Remove namespaces in favor of modules (#236)
  • Fix eslint warnings (#238)
  • Fix no-require-imports eslint warning (#239)
  • Enable no-unused-vars eslint rule (2e3b9d6)
  • Remove tsconfig.base.json in favor of @tsconfig/node18 (#235)
  • Unvendor typescript types definitions (#234)
  • Remove hardcoded types (#240)

📖 Documentation

  • Remove all contributors badge (#230)
  • Remove articles section (02d7d6c)

🏡 Chore

  • Update eslint config to remove old src/declarations path (0ab8ebc)
  • Update package.json contributors (b79f96d)
  • deps-dev: Bump @types/node from 18.19.43 to 22.2.0 (#241)
  • deps-dev: Bump typescript-eslint from 8.0.1 to 8.1.0 (#243)
  • deps-dev: Bump @eslint/js from 9.8.0 to 9.9.0 (#242)
  • deps-dev: Bump eslint from 9.8.0 to 9.9.0 (#245)

✅ Tests

  • Remove yarn pack workaround (#232)

🎨 Styles

❤️ Contributors

typescript-transform-paths - v1.1.4

Published by danielpza 2 months ago

Bug Fixes

  • some exports not working (cc2ba49)
typescript-transform-paths - v1.1.3

Published by danielpza 2 months ago

Bug Fixes

Tests

  • use release build for tests (6069d24)
typescript-transform-paths - v1.1.2

Published by danielpza 2 months ago

  • add some keywords to package.json
  • update license to MIT
  • add all contributor

typescript-transform-paths - v1.1.14

Published by danielpza 2 months ago

Bug Fixes

typescript-transform-paths - v1.1.15

Published by danielpza 2 months ago

Bug Fixes

typescript-transform-paths - v1.1.12

Published by danielpza 2 months ago

Bug Fixes

typescript-transform-paths - v1.1.13

Published by danielpza 2 months ago

Bug Fixes

  • another edge case for implicit * path (#43) (d0f4eb7), closes #42
typescript-transform-paths - v1.1.11

Published by danielpza 2 months ago

Bug Fixes

  • not working with files with multiple extensions (#37) (97454c7)
typescript-transform-paths - v1.1.10

Published by danielpza 2 months ago

Bug Fixes

  • do not transform relative paths (dd57089), closes #30
  • resolve only if file exists (e6c51e0)
typescript-transform-paths - v1.0.2

Published by danielpza 2 months ago

Bug Fixes

  • produce posix path in windows (5059c3d), closes #5

typescript-transform-paths - v1.1.1

Published by danielpza 2 months ago

Bug Fixes

  • check for paths and baseUrl in tsconfig (c3710c4)
  • type only import not deleted from result file (73dd8e2), closes #9

1.1.0 (2019-05-01)

Features

typescript-transform-paths - v1.0.1

Published by danielpza 2 months ago

Bug Fixes

  • not working for same or lower directory level (a748d6a), closes #2

1.0.0 (2019-02-02)

Features

typescript-transform-paths - v3.4.10

Published by danielpza 2 months ago

compare changes

🏡 Chore

  • Update dependencies (#226)
  • Replace standard-version with changelogen (#227)

🤖 CI

  • Generate provenance on npm publish (#229)

❤️ Contributors

typescript-transform-paths - v3.4.8

Published by danielpza 2 months ago

What's Changed

This release brings mostly maintenance work under the hood, some highlights

  • upgrade to yarn v4 🎉
  • updated prettier to v3
  • setup dependabot for automatic dependencies updates
  • updated a bunch of dependencies, mostly development only since we only have single production dependency

Full Changelog: https://github.com/LeDDGroup/typescript-transform-paths/compare/v3.4.7...v3.4.8

typescript-transform-paths - v3.0.2

Published by nonara over 3 years ago

Added accommodation for changes to latest TS dev build and further stabilized resolution strategy

typescript-transform-paths - v3.0.0

Published by nonara over 3 years ago

Notes

We did a total overhaul on the module resolution code. There should be no breaking changes, but since we're dealing with the compiler API and have integrated a few new pieces of that, we're bumping the major version to be safe.

The reason behind the rewrite is because there were several issues which could arise from implicit indexes. One rather complicated scenario arose when trying to point to a sub-package (outside of node-modules) which had a main entry in package.json. This entry could point to a sub-folder of the main, which made relative mapping and removing indexes difficult. Several other related bugs had been cropping up.

On top of this, the plugin originally resolved and rewrote every call to import, require, etc. We've managed to replicate the compiler's paths matching logic in order to only process and rewrite calls or statements which either match a paths entry or have an explicit tag. This should speed up the process, and it is better logic, overall.

If you experience any issues, let us know!

Changes

  • Several improvements were made for speed and efficiency.
  • Now accommodating for new TS empty baseURL provision (closes #109)
  • Pre-checking necessity before overwriting paths (closes #110)
  • Rewrote core resolution methodology to:
    • Properly handle implicit indexes (closes #106)
    • Properly handle implicit sub-package indexes set via package.json 'main' #108)
    • Not follow symlinks (#107)
    • Resolve from output path as opposed to SourceFile path (#103)