Right now, config validation is not turned on by default and only certain commands turn it on, like the app pack command:
|
const appConfig = await libConfig.load({ validateAppConfig: true }) |
Modify BaseCommand.getFullConfig to validate the app config by default - this means that all commands that call getFullConfig will validate the config by default, even if they don't use the whole config:
https://github.com/search?q=repo%3Aadobe%2Faio-cli-plugin-app%20getFullConfig&type=code
BaseCommand.getFullConfig:
|
const validateAppConfig = options.validateAppConfig === true |
Provide a shared flag in the BaseCommand to turn off config validation, just in case there are issues:
Right now, config validation is not turned on by default and only certain commands turn it on, like the
app packcommand:aio-cli-plugin-app/src/commands/app/pack.js
Line 43 in 4fb2a25
Modify
BaseCommand.getFullConfigto validate the app config by default - this means that all commands that callgetFullConfigwill validate the config by default, even if they don't use the whole config:https://github.com/search?q=repo%3Aadobe%2Faio-cli-plugin-app%20getFullConfig&type=code
BaseCommand.getFullConfig:aio-cli-plugin-app/src/BaseCommand.js
Line 147 in 4fb2a25
Provide a shared flag in the
BaseCommandto turn off config validation, just in case there are issues:config-validationandallowsNo : true,default: true.getFullConfigmethod should read the flag directlyBaseCommandflags