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 4
4
const { gatherTelemetryForUrl, analyzeEmberObject } = require ( 'ember-codemods-telemetry-helpers' ) ;
5
5
6
6
( 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 ) ;
8
10
if ( process . env [ 'NO_TELEMETRY' ] !== 'true' ) {
9
11
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 ) ;
11
15
}
12
16
13
17
require ( 'codemod-cli' ) . runTransform ( __dirname , 'ember-object' , args ) ;
You can’t perform that action at this time.
0 commit comments