UNPKG

@next-boilerplate/cli-helpers

Version:
25 lines (21 loc) 680 B
'use strict'; var zod = require('zod'); var index = require('../plugins/index.cjs'); var index$1 = require('../stores/index.cjs'); require('../utils/index.cjs'); require('path'); const configSchema = zod.z.object({ name: zod.z.string().max(100), // List of plugins to be installed plugins: zod.z.array( // Extend the plugin schema to include the store information index.pluginSchema.extend({ store: index$1.storeSchema }) ), // List of stores to be installed stores: zod.z.array(index$1.storeSchema) }); const optionalConfigSchema = configSchema.partial(); exports.configSchema = configSchema; exports.optionalConfigSchema = optionalConfigSchema;