Skip to content

Commit 583a24b

Browse files
authored
[codemod] Fix codemods not found (#45473)
1 parent 834a446 commit 583a24b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/mui-codemod/codemod.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ async function runJscodeshiftTransform(transform, files, flags, codemodFlags) {
1717
const paths = [
1818
path.resolve(__dirname, './src', `${transform}/index.js`),
1919
path.resolve(__dirname, './src', `${transform}.js`),
20-
path.resolve(__dirname, './node', `${transform}/index.js`),
21-
path.resolve(__dirname, './node', `${transform}.js`),
20+
path.resolve(__dirname, './', `${transform}/index.js`),
21+
path.resolve(__dirname, './', `${transform}.js`),
2222
];
2323

2424
let transformerPath;
@@ -107,7 +107,7 @@ async function runPostcssTransform(transform, files) {
107107
// local postcss plugins are loaded through config files https://github.com/postcss/postcss-load-config/issues/17#issuecomment-253125559
108108
const paths = [
109109
path.resolve(__dirname, './src', `${transform}/postcss.config.js`),
110-
path.resolve(__dirname, './node', `${transform}/postcss.config.js`),
110+
path.resolve(__dirname, './', `${transform}/postcss.config.js`),
111111
];
112112

113113
let configPath;

0 commit comments

Comments
 (0)