DEV: Setup deprecation workflow earlier (#30768)

In 0ed4b09527857d7751dba7fb2d765e08bf46a65e, this code was moved into
app.js, which means it actually ends up running after all the other
imports have been completed. That's too late, and some deprecations are
triggered before that.

This commit moves `setupDeprecationWorkflow` back into its own module,
with a 'side effect only' import from `app.js`.
This commit is contained in:
David Taylor
2025-01-14 20:17:13 +00:00
committed by GitHub
parent 912b002dcc
commit 0fcb832244
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,4 @@
import setupDeprecationWorkflow from "ember-cli-deprecation-workflow";
import DEPRECATION_WORKFLOW from "./deprecation-workflow";
setupDeprecationWorkflow({ workflow: DEPRECATION_WORKFLOW });
import "./setup-deprecation-workflow";
import "decorator-transforms/globals";
import "./loader-shims";
import "./discourse-common-loader-shims";

View File

@ -0,0 +1,4 @@
import setupDeprecationWorkflow from "ember-cli-deprecation-workflow";
import DEPRECATION_WORKFLOW from "./deprecation-workflow";
setupDeprecationWorkflow({ workflow: DEPRECATION_WORKFLOW });