Skip to content

Commit

Permalink
[codemod] Setup v6 codemod structure (mui#41668)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoAndai authored and mnajdova committed Mar 29, 2024
1 parent f538e69 commit 8b323da
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
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;
}

0 comments on commit 8b323da

Please sign in to comment.