config-loader: visibilities -> visiblity
This commit is contained in:
@@ -26,14 +26,14 @@ export default async (cmd: Command) => {
|
||||
|
||||
if (cmd.frontend) {
|
||||
const frontendConfigs = schema.process(appConfigs, {
|
||||
visibilities: ['frontend'],
|
||||
visiblity: ['frontend'],
|
||||
});
|
||||
data = ConfigReader.fromConfigs(frontendConfigs).get();
|
||||
} else if (cmd.withSecrets) {
|
||||
data = ConfigReader.fromConfigs(appConfigs).get();
|
||||
} else {
|
||||
let secretConfigs = schema.process(appConfigs, {
|
||||
visibilities: ['secret'],
|
||||
visiblity: ['secret'],
|
||||
});
|
||||
secretConfigs = secretConfigs.map(entry => ({
|
||||
context: entry.context,
|
||||
|
||||
@@ -41,7 +41,7 @@ export async function loadCliConfig(configArgs: string[]) {
|
||||
);
|
||||
|
||||
const frontendAppConfigs = schema.process(appConfigs, {
|
||||
visibilities: ['frontend'],
|
||||
visiblity: ['frontend'],
|
||||
});
|
||||
const frontendConfig = ConfigReader.fromConfigs(frontendAppConfigs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user