File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
apps/rush-lib/src/cli/actions Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,26 @@ export class CommandLineMigrationAdvisor {
2424 }
2525
2626 if ( args [ 0 ] === 'install' ) {
27- if ( args . indexOf ( '-C' ) >= 0 || args . indexOf ( '- -full-clean') >= 0 ) {
27+ if ( args . indexOf ( '--full-clean' ) >= 0 ) {
2828 CommandLineMigrationAdvisor . _reportDeprecated (
2929 'Instead of "rush install --full-clean", use "rush purge --unsafe".' ) ;
3030 return false ;
3131 }
32- if ( args . indexOf ( '-c' ) >= 0 || args . indexOf ( '--clean' ) >= 0 ) {
32+ if ( args . indexOf ( '-C' ) >= 0 ) {
33+ CommandLineMigrationAdvisor . _reportDeprecated (
34+ 'Instead of "rush install -C", use "rush purge --unsafe".' ) ;
35+ return false ;
36+ }
37+ if ( args . indexOf ( '--clean' ) >= 0 ) {
3338 CommandLineMigrationAdvisor . _reportDeprecated (
3439 'Instead of "rush install --clean", use "rush install --purge".' ) ;
3540 return false ;
3641 }
42+ if ( args . indexOf ( '-c' ) >= 0 ) {
43+ CommandLineMigrationAdvisor . _reportDeprecated (
44+ 'Instead of "rush install -c", use "rush install --purge".' ) ;
45+ return false ;
46+ }
3747 }
3848 }
3949
You can’t perform that action at this time.
0 commit comments