Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[codemod] Setup v6 codemod structure #41668

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/mui-codemod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ npx @mui/codemod@next <transform> <path> --jscodeshift="--printOptions='{\"quote
## Included scripts

- [Deprecation](#deprecations)
- [v6](#v600)
- [v5](#v500)
- [v4](#v400)
- [v1](#v100)
Expand Down Expand Up @@ -970,6 +971,8 @@ npx @mui/codemod@latest deprecations/step-label-props <path>

```

### v6.0.0

### v5.0.0

#### `base-use-named-exports`
Expand Down
1 change: 1 addition & 0 deletions packages/mui-codemod/src/v6.0.0/all/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './v6-all';
7 changes: 7 additions & 0 deletions packages/mui-codemod/src/v6.0.0/all/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Currently empty, when adding the first codemod:
// - Read mui-codemod/CONTRIBUTING.md
// - Follow mui-codemod/src/deprecations/all/postcss.config.js as a guide
// - Remove this comment
module.exports = {
plugins: [],
};
11 changes: 11 additions & 0 deletions packages/mui-codemod/src/v6.0.0/all/v6-all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
export default function v6All(file) {
// Currently empty, when adding the first codemod:
// - Read mui-codemod/CONTRIBUTING.md
// - Follow mui-codemod/src/deprecations/all/deprecations-all.js as a guide
// - Remove this comment
return file.source;
}
Loading