to-relative-paths

1.0.1 • Public • Published

Relative paths

Replaces tsconfig-related paths or aliases to relative

You can find us on github and npmjs

How to use

npm i -g to-relative-paths
npx to-relative-paths --root="path/to/root" --dest="path/to/dest" --alias="@internal-path" --verbose

where is

  • root it is your root path (like ./src)
  • alias it is an alias import's path starts with (like @my-lib)
  • dest it is the path to directory (alias directs to), must be related to root
  • Optional verbose to show matched paths

Package Sidebar

Install

npm i to-relative-paths

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.47 kB

Total Files

4

Last publish

Collaborators

  • dkulagin.com