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 = {
1818 '@codeshift/(.*)$' : '<rootDir>/packages/$1/src' ,
1919 } ,
2020 testPathIgnorePatterns : [
21+ '.tmp/' ,
2122 '/node_modules/' ,
2223 '/plugin_packages/' ,
2324 '<rootDir>/packages/initializer/template/' ,
Original file line number Diff line number Diff line change 1+ import path from 'path' ;
12import semver from 'semver' ;
23import chalk from 'chalk' ;
34import ora from 'ora' ;
@@ -18,7 +19,10 @@ function getCodeshiftPackageName(packageName: string) {
1819}
1920
2021export 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+
2226 let transforms : string [ ] = [ ] ;
2327
2428 if ( ! flags . transform && ! flags . packages ) {
You can’t perform that action at this time.
0 commit comments