Skip to content

Commit

Permalink
Use wildcards for system
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 23, 2022
1 parent ba07147 commit dfe3396
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/normalize/properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,11 @@ const since = {

const system = {
default: {},
}

const systemAny = {
normalize(value, { name }) {
checkObjectProps(value, name, checkDefinedString)
checkDefinedString(value, name)
},
}

Expand Down Expand Up @@ -269,6 +272,7 @@ export const COMMANDS_PROPS = {
runnerConfig,
select,
system,
'system.*': systemAny,
tasks,
'tasks[*]': tasksAny,
},
Expand Down Expand Up @@ -316,6 +320,7 @@ export const COMMANDS_PROPS = {
showTitles,
since,
system,
'system.*': systemAny,
tasks,
'tasks[*]': tasksAny,
titles,
Expand Down

0 comments on commit dfe3396

Please sign in to comment.