Skip to content

Commit

Permalink
Disable git for create-next-app
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Dec 17, 2024
1 parent 74def7a commit b326395
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/init.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,11 @@ program

log(chalk.green('Creating new next-forge project...'));
execSync(
`${packageManager} create next-app@latest ${projectName} --example "${url}"`,
`${packageManager} create next-app@latest ${projectName} --example "${url}" --disable-git`,
execSyncOpts
);
process.chdir(projectDir);

if (existsSync('.git')) {
rmSync('.git', { recursive: true, force: true });
}

if (packageManager === 'bun') {
log(chalk.green('Configuring Bun workspaces...'));
const packageJsonPath = join(projectDir, 'package.json');
Expand Down Expand Up @@ -112,7 +108,10 @@ program
copyFileSync('packages/database/.env.example', 'packages/database/.env');

log(chalk.green('Setting up Prisma...'));
execSync(`${packageManager} run build --filter @repo/database`, execSyncOpts);
execSync(
`${packageManager} run build --filter @repo/database`,
execSyncOpts
);

log(chalk.green('Done!'));
log(
Expand Down

0 comments on commit b326395

Please sign in to comment.