We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd60552 commit 83dbcb1Copy full SHA for 83dbcb1
index.js
@@ -385,9 +385,10 @@ module.exports = {
385
_documentingAddon() {
386
let addon;
387
if (this._documentingAddonAt()) {
388
- addon = this.project.addons.find(
389
- (a) => a.root === this._documentingAddonAt(),
+ const pkg = require(
+ path.join(this._documentingAddonAt(), 'package.json'),
390
);
391
+ addon = this.project.addons.find((a) => a.name === pkg.name);
392
if (!addon) {
393
throw new Error(
394
`You set documentingAddonAt to point at ${this._documentingAddonAt()} but that addon does not appear to be present in this app.`,
0 commit comments