Skip to content

Commit

Permalink
updated dbProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
xelacast committed May 6, 2024
1 parent 29348b6 commit e7382dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli/src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ interface CliFlags {
nextAuth: boolean;
/** @internal Used in CI. */
appRouter: boolean;
/** @internal Used in CI */
dbProvider: DatabaseProvider;
}

interface CliResults {
Expand All @@ -59,6 +61,7 @@ const defaultOptions: CliResults = {
nextAuth: false,
importAlias: "~/",
appRouter: false,
dbProvider: "sqlite",
},
databaseProvider: "sqlite",
};
Expand Down Expand Up @@ -203,8 +206,8 @@ export const runCli = async (): Promise<CliResults> => {
// Explained below why this is in a try/catch block
try {
if (process.env.TERM_PROGRAM?.toLowerCase().includes("mintty")) {
logger.warn(` WARNING: It looks like you are using MinTTY, which is non-interactive. This is most likely because you are
using Git Bash. If that's that case, please use Git Bash from another terminal, such as Windows Terminal. Alternatively, you
logger.warn(` WARNING: It looks like you are using MinTTY, which is non-interactive. This is most likely because you are
using Git Bash. If that's that case, please use Git Bash from another terminal, such as Windows Terminal. Alternatively, you
can provide the arguments from the CLI directly: https://create.t3.gg/en/installation#experimental-usage to skip the prompts.`);

throw new IsTTYError("Non-interactive environment");
Expand Down

0 comments on commit e7382dc

Please sign in to comment.