I have a medium/large TypeScript project (~500 source files) and I'd like to do a large-scale reorganization, changing the directory structure and moving all the modules around.
It's easy to move a single file in VS Code and update all the imports:
This refactor is implemented using the TypeScript Language Service. Doing the move and update using drag and drop works well for a small number of files, but for a mass reorganization, I'd rather write out some kind of script:
old/path/to/file.ts --> new/path/newfile.ts
old/path/to/olddir --> new/path/to/newdir
Is it possible to interact with VS Code or the TypeScript Language Service in this way? Are there other TypeScript or JavaScript codemod tools that can help with this?
