serverless-exports-plugin
Version:
Serverless Framework plugin to export Environment variables and CloudFormation outputs to a file
37 lines (36 loc) • 1.06 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.configSchema = void 0;
const formats = ['env', 'json', 'toml', 'yaml'];
const configEnvironmentSchema = {
type: 'object',
properties: {
overwrite: { type: 'boolean', default: false },
format: { type: 'string', default: 'env' },
file: { type: 'string', default: '.env' },
},
required: ['file', 'format', 'overwrite'],
};
const configStackSchema = {
type: 'object',
properties: {
overwrite: { type: 'boolean', default: false },
format: { type: 'string', default: 'env' },
file: { type: 'string', default: '.env' },
},
required: ['file', 'format', 'overwrite'],
};
const configSchema = {
type: 'object',
properties: {
exports: {
type: 'object',
properties: {
environment: configEnvironmentSchema,
stack: configStackSchema,
},
},
},
required: ['exports'],
};
exports.configSchema = configSchema;