Skip to content

Commit

Permalink
Add manifest plugins getter
Browse files Browse the repository at this point in the history
  • Loading branch information
taylortom committed Nov 21, 2023
1 parent 60dfcda commit 98a34b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/AdaptFrameworkModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ class AdaptFrameworkModule extends AbstractModule {
}
}

/**
* Retrieves the plugins listed in the framework manifest, but not necessarily installed
* @return {Promise}
*/
async getManifestPlugins () {
const manifest = await fs.readJson(path.resolve(this.path, 'adapt.json'))
return Object.entries(manifest.dependencies)
}

/**
* Retrieves the locally installed plugins
* @return {Promise}
Expand Down

0 comments on commit 98a34b8

Please sign in to comment.