mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Plugins do not set "type" on options they propose, and if they're boolean options, treating them as strings breaks handling
18 lines
333 B
JavaScript
18 lines
333 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
config: {
|
|
usage: 'Path to serverless config file',
|
|
shortcut: 'c',
|
|
},
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
shortcut: 's',
|
|
},
|
|
...require('./global'),
|
|
};
|
|
|
|
for (const optionSchema of Object.values(module.exports)) {
|
|
if (!optionSchema.type) optionSchema.type = 'string';
|
|
}
|