Skip to content

Commit

Permalink
remove git cleanup from the setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyrenth authored Dec 11, 2024
1 parent 63c8c0b commit 90697c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ try {

fs.unlinkSync(path.join(__dirname, '..', './Banner.png'));
fs.rmdirSync(path.join(__dirname, '..', './Badges'), { recursive: true });
fs.rmdirSync(path.join(__dirname, '..', './.git'), { recursive: true });
// fs.rmdirSync(path.join(__dirname, '..', './.git'), { recursive: true });

delete packageJson.scripts.setup;
fs.writeFileSync(path.join(__dirname, '..', 'package.json'), JSON.stringify(packageJson, null, 4));
Expand All @@ -35,12 +35,18 @@ try {
console.error('[Setup]', 'Failed to install dependencies. Do you have pnpm installed?');
}

/*
We no longer clean up git as most people are probably creating a new repo
using the template and cloning that instead of cloning the template directly.
------
console.log('[Setup]', 'Initializing git...');
try {
execSync('git init');
} catch (err) {
console.error('[Setup]', 'Failed to initialize git. Do you have git installed?');
}
*/

console.log('[Setup]', 'Setup complete.');

0 comments on commit 90697c7

Please sign in to comment.