diff --git a/index.js b/index.js index de34dcb..d6fdd3c 100755 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ const CURRENT_DIR = process.cwd() const root = dirname( import.meta.url.slice(process.platform === 'win32' ? 10 : 7) ) -const { version } = JSON.parse(fs.cat(join(root, './package.json'))) +const VERSION = '1.0.1' const DEFAULT_NAME = 'vue-live-app' @@ -80,7 +80,7 @@ function printHelp() { switch (args[0]) { case '-v': case '--version': - console.log('v' + version) + console.log('v' + VERSION) break case '-h': diff --git a/package.json b/package.json index 35ce6ec..a5fb08f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "create-vue-live", "type": "module", - "version": "1.0.0", + "version": "1.0.1", "bin": { "create-vue-live": "index.js" },