File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @codeshift/cli ' : minor
3
+ ---
4
+
5
+ Codemods and dependencies are downloaded relative to the CLI package installation for consistency/stability reasons
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ module.exports = {
18
18
'@codeshift/(.*)$' : '<rootDir>/packages/$1/src' ,
19
19
} ,
20
20
testPathIgnorePatterns : [
21
+ '.tmp/' ,
21
22
'/node_modules/' ,
22
23
'/plugin_packages/' ,
23
24
'<rootDir>/packages/initializer/template/' ,
Original file line number Diff line number Diff line change
1
+ import path from 'path' ;
1
2
import semver from 'semver' ;
2
3
import chalk from 'chalk' ;
3
4
import ora from 'ora' ;
@@ -18,7 +19,10 @@ function getCodeshiftPackageName(packageName: string) {
18
19
}
19
20
20
21
export default async function main ( paths : string [ ] , flags : Flags ) {
21
- const packageManager = new PluginManager ( ) ;
22
+ const packageManager = new PluginManager ( {
23
+ pluginsPath : path . join ( __dirname , '.plugin_packages' ) ,
24
+ } ) ;
25
+
22
26
let transforms : string [ ] = [ ] ;
23
27
24
28
if ( ! flags . transform && ! flags . packages ) {
You can’t perform that action at this time.
0 commit comments