Skip to content

Commit

Permalink
fix(Config Schema): Recognize enhanced object syntax for plugins (#8259)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimjenkins5 committed Sep 18, 2020
1 parent 29d5fe7 commit 4b86fa5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/configSchema.js
Expand Up @@ -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',
Expand Down

0 comments on commit 4b86fa5

Please sign in to comment.