move-ts
move-ts copied to clipboard
Not updating path of File from TSConfig Path
Hi when I move files and their path is from tsconfig path then it is not getting updated.
For example command.ts is file and I have reference to this file as below
import {command} from @message/command
Then when I move this file some where else then the path is not getting updated.
This might be already fixed -- I'm using tsconfig paths extensively, and they're updated correctly.
But, I noticed another thing: it favors the tsconfig paths over local paths, even if the latter are simpler.
Example:
- in
file1.ts, located in@alias1/subdir1:import ... from '@alias1/subdir2/some-file'. - use move-ts to move
some-file.tstosubdir1. - the imports is updated to
... from '@alias1/subdir1/some-file' - expected: the import should be updated to
... from './some-file'.