File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @codeshift/cli ' : patch
3+ ' @codeshift/initializer ' : patch
4+ ---
5+
6+ Additional init path releated fixes
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
12import { initDirectory } from '@codeshift/initializer' ;
23
34export default async function init (
@@ -15,6 +16,6 @@ export default async function init(
1516 }
1617
1718 console . log (
18- `🚚 New codemod package created at: ${ targetPath } / ${ packageName } ` ,
19+ `🚚 New codemod package created at: ${ path . join ( targetPath , packageName ) } ` ,
1920 ) ;
2021}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export function initDirectory(
110110 }
111111
112112 const basePath = `${ targetPath } /${ packageName . replace ( '/' , '__' ) } ` ;
113- const transformPath = `${ basePath } ${ ! isReduced ? '/src/ ' : '' } /${ transform } ` ;
113+ const transformPath = `${ basePath } ${ ! isReduced ? '/src' : '' } /${ transform } ` ;
114114 const configPath = `${ basePath } ${
115115 ! isReduced ? '/src' : ''
116116 } /codeshift.config.js`;
You can’t perform that action at this time.
0 commit comments