diff --git a/lib/configSchema.js b/lib/configSchema.js index 587410d2321..fbf49a22dea 100644 --- a/lib/configSchema.js +++ b/lib/configSchema.js @@ -32,7 +32,20 @@ const schema = { required: [], // User is free to add any properties for its own purpose }, - plugins: { type: 'array', items: { type: 'string' } }, + plugins: { + anyOf: [ + { + type: 'object', + properties: { + localPath: { type: 'string' }, + modules: { type: 'array', items: { type: 'string' } }, + }, + additionalProperties: false, + required: ['modules'], + }, + { type: 'array', items: { type: 'string' } }, + ], + }, functions: { type: 'object',