Update project name and related references
This commit is contained in:
@@ -13,7 +13,7 @@ export const defaultConfig = {
|
||||
nameEnumValues: (name: string) => `${name}Values`,
|
||||
nameRecordSchema: (name: string) => `${pascalCase(name)}Record`,
|
||||
nameRecordType: (name: string) => `${pascalCase(name)}Record`,
|
||||
output: "./zod-pocketbase.ts",
|
||||
output: "./zod-pocketbase-continue.ts",
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,7 @@ import { generate } from "@/server/utils.ts";
|
||||
import { existsSync } from "node:fs";
|
||||
|
||||
async function getConfig() {
|
||||
const { config } = await loadConfig({ name: "zod-pocketbase", rcFile: false, dotenv: true });
|
||||
const { config } = await loadConfig({ name: "zod-pocketbase-continue", rcFile: false, dotenv: true });
|
||||
const { ZOD_POCKETBASE_ADMIN_EMAIL: adminEmail, ZOD_POCKETBASE_ADMIN_PASSWORD: adminPassword, ZOD_POCKETBASE_URL: url } = process.env;
|
||||
const result = Config.safeParse({ ...config, adminEmail, adminPassword, url });
|
||||
if (!result.success) {
|
||||
@@ -73,7 +73,7 @@ async function setGeneratedFilePath(config: ResolvedConfig) {
|
||||
}
|
||||
|
||||
const main = defineCommand({
|
||||
meta: { name: "zod-pocketbase", version: pkg.version, description: "Generate Zod schemas for your pocketbase instance." },
|
||||
meta: { name: "zod-pocketbase-continue", version: pkg.version, description: "Generate Zod schemas for your pocketbase instance." },
|
||||
run: async () => {
|
||||
intro(`ZOD POCKETBASE`);
|
||||
const config = await getConfig();
|
||||
|
||||
Reference in New Issue
Block a user