From 96460230e181d28f89c5cee5ba4ff2f6cc330241 Mon Sep 17 00:00:00 2001 From: Jon Harrell <4829245+jharrell@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:21:01 -0500 Subject: [PATCH] patch: add databases as a valid path --- src/cli/validation.ts | 2 +- src/constants.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/validation.ts b/src/cli/validation.ts index d360e76..af750c7 100644 --- a/src/cli/validation.ts +++ b/src/cli/validation.ts @@ -24,7 +24,7 @@ export default { rootDir(path: string) { if (!EXAMPLES_DIR_ACCEPT.includes(path)) { throw new Error( - "Invalid template. Please choose a template from the `javascript`, `typescript`, `accelerate`, `pulse`, or `optimize` directories in the prisma/prisma-examples repository.", + "Invalid template. Please choose a template from the `typescript`, `databases`, `accelerate`, `pulse`, or `optimize` directories in the prisma/prisma-examples repository.", ); } }, diff --git a/src/constants.ts b/src/constants.ts index bc0da65..8dd73a8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -8,4 +8,4 @@ export const EXAMPLES_REPO_INTERCEPTOR = // "http://localhost:3000/api/intercept "https://www.try-prisma-analytics.com/api/interceptor"; // "https://www.try-prisma-analytics.vercel.app/api/interceptor"; -export const EXAMPLES_DIR_ACCEPT = ["typescript", "orm", "accelerate", "pulse", "optimize"]; +export const EXAMPLES_DIR_ACCEPT = ["typescript", "databases", "orm", "accelerate", "pulse", "optimize"];