File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 44const { gatherTelemetryForUrl, analyzeEmberObject } = require ( 'ember-codemods-telemetry-helpers' ) ;
55
66( async ( ) => {
7- let args = process . argv . slice ( 1 ) ;
7+ // `NO_TELEMETRY=true npx ember-native-class-codemod path`
8+ // => ['node', 'ember-native-class-codemod', 'path']
9+ let args = process . argv . slice ( 2 ) ;
810 if ( process . env [ 'NO_TELEMETRY' ] !== 'true' ) {
911 await gatherTelemetryForUrl ( process . argv [ 2 ] , analyzeEmberObject ) ;
10- args = process . argv . slice ( 2 ) ;
12+ // `npx ember-native-class-codemod http://localhost path`
13+ // => ['node', 'ember-native-class-codemod', 'http://localhost', 'path']
14+ args = process . argv . slice ( 3 ) ;
1115 }
1216
1317 require ( 'codemod-cli' ) . runTransform ( __dirname , 'ember-object' , args ) ;
You can’t perform that action at this time.
0 commit comments