Crates.io | mvts |
lib.rs | mvts |
version | 0.4.0 |
source | src |
created_at | 2021-04-26 10:33:52.658059 |
updated_at | 2021-05-09 19:51:09.288223 |
description | tool for moving typescript files |
homepage | https://github.com/pheis/mvts |
repository | https://github.com/pheis/mvts |
max_upload_size | |
id | 389646 |
size | 140,361 |
mvts is a a tool for moving TypeScript files and updating their relative imports and affected files. This is WIP but works on my machine :).
mvts takes two arguments: source_file_path and target_file_path.
mvts source_file.ts some_folder/another_folder/moved_source_file.ts
mvts moves source file to target_file_path and edits it's imports so that they are correct in the new location. mvts finds all files that import moved file and updates them accordingly.
mvts can be installed with cargo
cargo install mvts
$ git clone https://github.com/pheis/mvts
$ cd mvts
$ cargo build --release
$ ./target/release/mvts --version
0.2.0