Skip to content

Commit

Permalink
Using drizzleDatabaseProvider variable within installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Toscano committed Aug 31, 2024
1 parent 1a6c317 commit eabefad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/helpers/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface CreateProjectOptions {
importAlias: string;
appRouter: boolean;
databaseProvider: DatabaseProvider;
drizzleDatabaseProvider: DatabaseProvider;
}

export const createProject = async ({
Expand All @@ -33,6 +34,7 @@ export const createProject = async ({
noInstall,
appRouter,
databaseProvider,
drizzleDatabaseProvider,
}: CreateProjectOptions) => {
const pkgManager = getUserPkgManager();
const projectDir = path.resolve(process.cwd(), projectName);
Expand All @@ -46,6 +48,7 @@ export const createProject = async ({
noInstall,
appRouter,
databaseProvider,
drizzleDatabaseProvider,
});

// Install the selected packages
Expand All @@ -58,6 +61,7 @@ export const createProject = async ({
noInstall,
appRouter,
databaseProvider,
drizzleDatabaseProvider,
});

// Select necessary _app,index / layout,page files
Expand Down
2 changes: 2 additions & 0 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const main = async () => {
packages,
flags: { noGit, noInstall, importAlias, appRouter },
databaseProvider,
drizzleDatabaseProvider,
} = await runCli();

const usePackages = buildPkgInstallerMap(packages, databaseProvider);
Expand All @@ -52,6 +53,7 @@ const main = async () => {
scopedAppName,
packages: usePackages,
databaseProvider,
drizzleDatabaseProvider,
importAlias,
noInstall,
appRouter,
Expand Down

0 comments on commit eabefad

Please sign in to comment.