diff --git a/packages/create-app/package.json b/packages/create-app/package.json index c3c9984..5239b21 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -1,6 +1,6 @@ { "name": "@electron-esbuild/create-app", - "version": "2.0.2", + "version": "2.0.3", "keywords": [ "electron", "react", diff --git a/packages/create-app/src/index.mts b/packages/create-app/src/index.mts index e9dc7f4..5c0e2ca 100644 --- a/packages/create-app/src/index.mts +++ b/packages/create-app/src/index.mts @@ -30,7 +30,6 @@ const getVersion = async (): Promise => { } const _argv = minimist(process.argv.slice(2)) -const _version = await getVersion() if (_argv.help) { console.log( @@ -53,6 +52,8 @@ ${cyan('--help')} show this help } if (_argv.version) { + const _version = await getVersion() + console.log(_version) process.exit(0)