Skip to content

Commit 6545fac

Browse files
committed
feat(generator): add encouragement to star the repository in project generation output; remove unnecessary shell option in git commands
1 parent d410ea8 commit 6545fac

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/create-tbk-app/src/generators/project.generator.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ export async function generateProject(
9696
console.log('');
9797
console.log(chalk.yellow('Happy coding! 🚀'));
9898
console.log('');
99+
console.log(
100+
chalk.dim(
101+
'If you find this toolkit helpful, please consider starring the repo:',
102+
),
103+
);
104+
console.log(
105+
chalk.cyan('https://github.com/muneebhashone/typescript-backend-toolkit'),
106+
);
107+
console.log('');
99108
} catch (error) {
100109
spinner.fail('Project generation failed');
101110
throw error;

packages/create-tbk-app/src/utils/package-manager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export async function initGitRepository(targetDir: string): Promise<void> {
3434
const child = spawn('git', ['init'], {
3535
cwd: targetDir,
3636
stdio: 'inherit',
37-
shell: true,
3837
});
3938

4039
child.on('close', (code) => {
@@ -67,7 +66,6 @@ export async function createInitialCommit(targetDir: string): Promise<void> {
6766
const child = spawn('git', commands[index], {
6867
cwd: targetDir,
6968
stdio: 'inherit',
70-
shell: true,
7169
});
7270

7371
child.on('close', (code) => {

0 commit comments

Comments
 (0)