Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function configBlueprint() {
return {
configure: shape({
cleanup: bool(false),
parallel: bool(true),
}),
execute: shape({
concurrency: number(),
graph: bool(true),
}),
module: process.env.BEEMO_CONFIG_MODULE
? string(process.env.BEEMO_CONFIG_MODULE)
: string().required(),
};
}
Object.keys(options).forEach(key => {
blueprint[key] = shape({
description: string()
.notEmpty()
.required(),
});
});
createUnionType(defaultValue: unknown = null): UnionBuilder {
return union(
[
string().notEmpty(),
shape({
type: string()
.notEmpty()
.required(),
}),
],
defaultValue,
).required();
}
export function configBlueprint() {
return {
configure: shape({
cleanup: bool(false),
parallel: bool(true),
}),
execute: shape({
concurrency: number(),
graph: bool(true),
}),
module: process.env.BEEMO_CONFIG_MODULE
? string(process.env.BEEMO_CONFIG_MODULE)
: string().required(),
};
}