@architect/inventory 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@architect/inventory",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "description": "Architect project resource enumeration utility",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -79,6 +79,10 @@ module.exports = async function getPluginModules ({ arc, inventory, errors }) {
79
79
  if (type === 'macro') {
80
80
  plugins[name] = { deploy: { start: require(pluginPath) } }
81
81
  }
82
+ // Check the plugin has at least one recognised method configured
83
+ if (![ 'set', ...pluginMethods ].some((method) => plugins[name][method])) {
84
+ errors.push(`No recognized methods for plugin: ${name}`)
85
+ }
82
86
  // Walk each plugin and build the method tree
83
87
  Object.entries(plugins[name]).forEach(([ method, item ]) => {
84
88
  // Primitive setters