v1.0.0 Codemod skipping all files
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior
It should update source files as described.
Current Behavior
It skips all the source files.
$ find src -name '*.js' -print | xargs jscodeshift -t node_modules/@material-ui/codemod/lib/v1.0.0/import-path.js
Processing 78 files...
Spawning 3 workers...
Sending 26 files to free worker...
Sending 26 files to free worker...
Sending 26 files to free worker...
All done.
Results:
0 errors
0 unmodified
78 skipped
0 ok
Time elapsed: 1.852seconds
Your Environment
Tech | Version |
---|---|
Material-UI | 1.0.0-rc.0 |
React | 16.3.2 |
Node.js | 10.1.0 |
NPM | 6.0.1 |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:31 (23 by maintainers)
Top Results From Across the Web
v1.0.0 Codemod skipping all files · Issue #11369 - GitHub
It should update source files as described. Current Behavior. It skips all the source files. $ find src -name '*.js' -print | xargs...
Read more >CodeshiftCommunity: Codemods for Improved Development ...
Discover the power of codemods for your development workflow. Our tools and resources allow you to easily manage dependencies, automate refactoring, ...
Read more >@mui/codemod - npm
A combination of all important transformers for migrating v4 to v5. ⚠️ This codemod should be run only once.
Read more >Codemod / Introduction - Page ⋅ Storybook - Oriflame
v2.0.0. All important transformers for migrating from v1 to v2. Recommended transform command is preset-safe since it runs mui's own codemod under the...
Read more >jscodeshift is always skipping my js files - Stack Overflow
There are two issues here. First. There is a manual step you must take to make the codemod work, as detailed in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@psamim You need to change the imports from
material-ui
to@material-ui/core
before using the codemod. The codemod is only about flattening the imports.Flattening the imports is a long and tedious work, so we automated it. Renaming
material-ui
to@material-ui/core
is trivial.Same problem here