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

does not update paths when typescript definition file is moved

Open no-stack-dub-sack opened this issue 6 years ago • 0 comments

Hi, awesome extension and works really well! Saves so much tedium when making architectural changes to a project or when making minor folder structure modifications. Great work!

The only issue I'm having is when I move internal typescript definition files using the extension, the paths are not correctly updated in the files that depend on the type definitions. For example:

src/client/components/myComponent/myComponent.d.ts

export interface IName {
   name: string;
}

src/client/components/myComponent/index.ts

import { IName } from './myCompenent.d'; // or just './myComponent';

const name: IName = {
  name: 'Paul',
}

If myComponent.d.ts is moved using the extension, the path in index.ts does not changed.

no-stack-dub-sack avatar May 06 '18 19:05 no-stack-dub-sack