mirror of
https://github.com/discourse/discourse.git
synced 2025-02-28 16:29:22 +00:00
DEV: make ember-cli skip plugin directories without plugin.rb
(#18171)
This updates the ember-cli plugin detection logic to match the logic in `Plugin::Instance.find_all`. It will now ignore plugin directories which do not have a `plugin.rb` file.
This commit is contained in:
parent
3501468db7
commit
801a284968
@ -88,7 +88,8 @@ module.exports = {
|
||||
.filter(
|
||||
(dirent) =>
|
||||
(dirent.isDirectory() || dirent.isSymbolicLink()) &&
|
||||
!dirent.name.startsWith(".")
|
||||
!dirent.name.startsWith(".") &&
|
||||
fs.existsSync(path.resolve(root, dirent.name, "plugin.rb"))
|
||||
);
|
||||
|
||||
return pluginDirectories.map((directory) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user