discourse/app/assets/javascripts/patches/ember-cli+5.0.0.patch
David Taylor 5276afa9b2
DEV: Refactor bowerDependencies patch (#24437)
Moves the patch from ember-source to ember-cli so that it's easier for us to feature-flag an ember-source upgrade without fighting with patch-package. We'll be able to remove this patch once we're fully on Ember 5.x.

(ref https://github.com/discourse/discourse/pull/21720)
2023-11-20 13:28:02 +00:00

17 lines
528 B
Diff

diff --git a/node_modules/ember-cli/lib/models/project.js b/node_modules/ember-cli/lib/models/project.js
index 7b3c7c9..e0c5fb9 100644
--- a/node_modules/ember-cli/lib/models/project.js
+++ b/node_modules/ember-cli/lib/models/project.js
@@ -716,6 +716,11 @@ class Project {
logger.info('getProjectRoot %s -> %s', process.cwd(), directory);
return directory;
}
+
+ // Allows us to use recent ember-cli with ember-source 3.28.12
+ bowerDependencies(){
+ return [];
+ }
}
class NotFoundError extends Error {