Skip to content

Commit e19ac57

Browse files
committed
REVERT: Dogfooding updates
1 parent 24f84b5 commit e19ac57

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

bin/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
const { 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,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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",

transforms/helpers/transform.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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 = {

0 commit comments

Comments
 (0)