move-ts icon indicating copy to clipboard operation
move-ts copied to clipboard

Not updating path of File from TSConfig Path

Open rupeshtiwari opened this issue 7 years ago • 2 comments

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.

rupeshtiwari avatar Nov 06 '18 17:11 rupeshtiwari

This might be already fixed -- I'm using tsconfig paths extensively, and they're updated correctly.

quezak avatar Sep 03 '19 15:09 quezak

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.ts to subdir1.
  • the imports is updated to ... from '@alias1/subdir1/some-file'
  • expected: the import should be updated to ... from './some-file'.

quezak avatar Sep 03 '19 15:09 quezak