is there codemods to move files from one package to a new one?
-
Show this thread
-
@WebStormIDE it would be cool to have a refactor that move a file to another package1 reply 0 retweets 2 likesShow this thread -
Replying to @sseraphini
Doesn’t Move refactoring on file do what you expect? What kind of environment do you have?
1 reply 0 retweets 1 like -
Replying to @WebStormIDE
Move refactoring is almost there, it won't reference the package: import { fn } from '../../fileToMove' will be import { fn } from '../../../packageName/fileToMove' instead of: import { fn } from 'packageName/fileToMove' packageName would be define on package.json
1 reply 0 retweets 0 likes -
Replying to @sseraphini
Can you provide your project structure (or sample project)? Do you have lerna or yarn workspaces in your project?
1 reply 0 retweets 1 like
Replying to @WebStormIDE @sseraphini
Please check if you have 2019.1.1
10:43 AM - 19 Apr 2019
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.