Skip to content

Commit 940dc32

Browse files
committed
pipe version of create expo stack to git commit message
1 parent 9042047 commit 940dc32

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/seven-scissors-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-expo-stack': patch
3+
---
4+
5+
pipe version of create expo stack to git commit message

cli/src/utilities/printOutput.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ export async function printOutput(
8585
if (!options.noGit && !flags.noGit) {
8686
s.start(`Initializing git...`);
8787
// initialize git repo and add first commit
88+
// get create expo stack version
89+
const cesVersion: string = require('../../package.json').version || '2.0.0';
8890
await system.spawn(
89-
`cd ${projectName} && git init --quiet && git add . && git commit -m "Initial commit" -m "Generated by create-expo-stack 2.0.0." --quiet`,
91+
`cd ${projectName} && git init --quiet && git add . && git commit -m "Initial commit" -m "Generated by create-expo-stack ${cesVersion}" --quiet`,
9092
{
9193
shell: true,
9294
stdio: 'inherit'

0 commit comments

Comments
 (0)