From 65dc56d1ef2b3f6dcc10e6fc0826245c0c20a029 Mon Sep 17 00:00:00 2001 From: Simon Ihmig Date: Mon, 3 Jul 2023 21:47:06 +0200 Subject: [PATCH] Update for ember-cli `--typescript` changes Update our blueprint to take account of changes when generating the test-app with `--typescript` ([PR](https://github.com/ember-cli/ember-cli/pull/10283)). The new blueprint now drops ember-cli-typescript and opts into the TS transform of ember-cli-babel, which we must not override. --- files/test-app-overrides/ember-cli-build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/test-app-overrides/ember-cli-build.js b/files/test-app-overrides/ember-cli-build.js index 5abea105..5ab98bef 100644 --- a/files/test-app-overrides/ember-cli-build.js +++ b/files/test-app-overrides/ember-cli-build.js @@ -4,7 +4,8 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function (defaults) { let app = new EmberApp(defaults, { - autoImport: { + <% if (typescript) {%>'ember-cli-babel': { enableTypeScriptTransform: true }, + <% } %>autoImport: { watchDependencies: ['<%= addonName %>'], }, });