Files
copilotkit__copilotkit/CopilotKit/packages/runtime/scripts/generate-gql-schema.ts
Ariel Weinberger 870e9ef21c fix: formatting
2024-06-26 12:08:25 +02:00

14 lines
369 B
TypeScript

import "reflect-metadata";
import { buildSchema } from "../src/lib/integrations/shared";
import path from "node:path";
console.log("Generating schema...");
const outputPath = path.resolve(__dirname, "../__snapshots__/schema/schema.graphql");
buildSchema({
emitSchemaFile: path.resolve(__dirname, outputPath),
});
console.log(`Schema generated to ${outputPath}`);