File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44const { gatherTelemetryForUrl, analyzeEmberObject } = require ( 'ember-codemods-telemetry-helpers' ) ;
55
66( async ( ) => {
7- await gatherTelemetryForUrl ( process . argv [ 2 ] , analyzeEmberObject ) ;
7+ // FIXME: Remove
8+ if ( ! process . env . DOGFOOD ) {
9+ await gatherTelemetryForUrl ( process . argv [ 2 ] , analyzeEmberObject ) ;
10+ }
811
912 require ( 'codemod-cli' ) . runTransform (
1013 __dirname ,
Original file line number Diff line number Diff line change 3535 "postpublish" : " yarn clean" ,
3636 "build" : " tsc" ,
3737 "clean" : " tsc --build --clean" ,
38- "fixme" : " yarn build; codemod-cli test && node ./test/run-test.js && git checkout test/fixtures; yarn clean" ,
38+ "fixme" : " yarn build; codemod-cli test && git checkout test/fixtures; yarn clean" ,
3939 "lint" : " concurrently \" npm:lint:*(!fix)\" --names \" lint:\" " ,
4040 "lint:fix" : " concurrently \" npm:lint:*:fix\" --names \" fix:\" " ,
4141 "lint:js" : " eslint . --cache" ,
Original file line number Diff line number Diff line change @@ -42,12 +42,13 @@ export default function maybeTransformEmberObjects(
4242 return ;
4343 }
4444
45- const runtimeData = getTelemetryFor ( path . resolve ( filePath ) ) ;
46- if ( ! runtimeData || ! isRuntimeData ( runtimeData ) ) {
47- logger . warn (
48- `[${ filePath } ]: SKIPPED Could not find runtime data NO_RUNTIME_DATA`
49- ) ;
50- return ;
45+ // FIXME: Revert
46+ const runtimeData = getTelemetryFor ( path . resolve ( filePath ) ) ?? { } ;
47+ if ( ! isRuntimeData ( runtimeData ) ) {
48+ // logger.warn(
49+ // `[${filePath}]: SKIPPED Could not find runtime data NO_RUNTIME_DATA`
50+ // );
51+ // return;
5152 }
5253
5354 const options : Options = {
You can’t perform that action at this time.
0 commit comments