Skip to content

Commit

Permalink
patch: add databases as a valid path
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell committed Oct 22, 2024
1 parent 1ee88aa commit 9646023
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

0 comments on commit 9646023

Please sign in to comment.