1.0.1 • Published 1 year ago

to-relative-paths v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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
1.0.1

1 year ago

1.0.0

1 year ago