Skip to content

Commit

Permalink
Change create-app getVersion()
Browse files Browse the repository at this point in the history
  • Loading branch information
TURMEL Kevin committed Apr 1, 2022
1 parent 9396d1e commit 8cae626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@electron-esbuild/create-app",
"version": "2.0.2",
"version": "2.0.3",
"keywords": [
"electron",
"react",
Expand Down
3 changes: 2 additions & 1 deletion packages/create-app/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ const getVersion = async (): Promise<string> => {
}

const _argv = minimist(process.argv.slice(2))
const _version = await getVersion()

if (_argv.help) {
console.log(
Expand All @@ -53,6 +52,8 @@ ${cyan('--help')} show this help
}

if (_argv.version) {
const _version = await getVersion()

console.log(_version)

process.exit(0)
Expand Down

0 comments on commit 8cae626

Please sign in to comment.