Skip to content

Commit 506fa08

Browse files
Merge pull request #64 from kiprasmel/patch-2
fix initializer: configPath should never be inside /src and should be .js
2 parents 79d64ff + b03ac8c commit 506fa08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/initializer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export function initDirectory(
113113
const transformPath = `${basePath}${!isReduced ? '/src/' : ''}/${transform}`;
114114
const configPath = `${basePath}${
115115
!isReduced ? '/src' : ''
116-
}/codeshift.config.ts`;
116+
}/codeshift.config.js`;
117117

118118
if (fs.existsSync(transformPath)) {
119119
throw new Error(`Codemod for ${type} "${transform}" already exists`);

0 commit comments

Comments
 (0)