From eabefadf0d64b2210a06b2cdc04efcfe9d12329c Mon Sep 17 00:00:00 2001 From: Jose Toscano Date: Sat, 31 Aug 2024 13:03:32 -0600 Subject: [PATCH] Using drizzleDatabaseProvider variable within installer --- cli/src/helpers/createProject.ts | 4 ++++ cli/src/index.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cli/src/helpers/createProject.ts b/cli/src/helpers/createProject.ts index 81b385485f..85c75aeecd 100644 --- a/cli/src/helpers/createProject.ts +++ b/cli/src/helpers/createProject.ts @@ -24,6 +24,7 @@ interface CreateProjectOptions { importAlias: string; appRouter: boolean; databaseProvider: DatabaseProvider; + drizzleDatabaseProvider: DatabaseProvider; } export const createProject = async ({ @@ -33,6 +34,7 @@ export const createProject = async ({ noInstall, appRouter, databaseProvider, + drizzleDatabaseProvider, }: CreateProjectOptions) => { const pkgManager = getUserPkgManager(); const projectDir = path.resolve(process.cwd(), projectName); @@ -46,6 +48,7 @@ export const createProject = async ({ noInstall, appRouter, databaseProvider, + drizzleDatabaseProvider, }); // Install the selected packages @@ -58,6 +61,7 @@ export const createProject = async ({ noInstall, appRouter, databaseProvider, + drizzleDatabaseProvider, }); // Select necessary _app,index / layout,page files diff --git a/cli/src/index.ts b/cli/src/index.ts index 0394f25180..ead9a69115 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -40,6 +40,7 @@ const main = async () => { packages, flags: { noGit, noInstall, importAlias, appRouter }, databaseProvider, + drizzleDatabaseProvider, } = await runCli(); const usePackages = buildPkgInstallerMap(packages, databaseProvider); @@ -52,6 +53,7 @@ const main = async () => { scopedAppName, packages: usePackages, databaseProvider, + drizzleDatabaseProvider, importAlias, noInstall, appRouter,