@next-boilerplate/cli-helpers
Version:
CLI helper for Next Boilerplate
22 lines (19 loc) • 592 B
JavaScript
import { z } from 'zod';
import { pluginSchema } from '../plugins/index.mjs';
import { storeSchema } from '../stores/index.mjs';
import '../utils/index.mjs';
import 'path';
const configSchema = z.object({
name: z.string().max(100),
// List of plugins to be installed
plugins: z.array(
// Extend the plugin schema to include the store information
pluginSchema.extend({
store: storeSchema
})
),
// List of stores to be installed
stores: z.array(storeSchema)
});
const optionalConfigSchema = configSchema.partial();
export { configSchema, optionalConfigSchema };