Skip to content

Commit 737eb81

Browse files
committed
Improve messages shown after project creation
1 parent 54cd421 commit 737eb81

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/index.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -319,20 +319,28 @@ async function init() {
319319
copyTemplate('eslint', config)
320320
}
321321

322+
console.log()
322323
console.log('Project created')
324+
console.log()
323325
console.log('Note: pnpm must be used as the package manager')
324326
console.log()
327+
console.log('Next steps:')
328+
console.log()
325329

326330
if (targetDirName !== '.') {
327-
console.log('cd ' + targetDirName)
331+
console.log(' cd ' + targetDirName)
328332
}
329333

330-
console.log('pnpm install')
331-
332-
if (!fs.existsSync(path.join(targetDirPath, 'packages', config.mainPackageDirName, 'LICENSE'))) {
333-
console.log()
334-
console.log(`You should add a suitable license at packages/${config.mainPackageDirName}/LICENSE`)
334+
if (!fs.existsSync(path.join(targetDirPath, '.git'))) {
335+
console.log(' git init')
335336
}
337+
338+
console.log(' pnpm install')
339+
340+
// if (!fs.existsSync(path.join(targetDirPath, 'packages', config.mainPackageDirName, 'LICENSE'))) {
341+
// console.log()
342+
// console.log(`You should add a suitable license at packages/${config.mainPackageDirName}/LICENSE`)
343+
// }
336344
}
337345

338346
function copyTemplate(templateName: string, config: Config) {

0 commit comments

Comments
 (0)