Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch: add databases as a valid path #58

Merged
merged 2 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "try-prisma",
"version": "1.0.54",
"version": "1.0.55",
"description": "A CLI tool to help get you up and running with any Prisma example project.",
"type": "module",
"exports": "./dist/index.js",
Expand Down
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"];
Loading