From 30b1130d46a84f3021c4e1e6470eb4ed04bf995f Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Fri, 7 Nov 2025 08:57:43 -0500 Subject: [PATCH] Handle when addons are installed elsewhere --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f91f1ea4d..c87c400ba 100644 --- a/index.js +++ b/index.js @@ -385,9 +385,10 @@ module.exports = { _documentingAddon() { let addon; if (this._documentingAddonAt()) { - addon = this.project.addons.find( - (a) => a.root === this._documentingAddonAt(), + const pkg = require( + path.join(this._documentingAddonAt(), 'package.json'), ); + addon = this.project.addons.find((a) => a.name === pkg.name); if (!addon) { throw new Error( `You set documentingAddonAt to point at ${this._documentingAddonAt()} but that addon does not appear to be present in this app.`,