Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit a18d8bf

Browse files
fix: displaying version does not work
1 parent 1ec8983 commit a18d8bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@livestorm/cli",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "CLI that allows you to build and deploy your Livestorm plugin",
55
"main": "index.js",
66
"bin": {

src/cmds/version.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const fs = require('fs')
2+
const path = require('path');
23

34
function getModuleVersion() {
4-
const file = fs.readFileSync('package.json', 'utf8')
5+
const file = fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf8')
56
return JSON.parse(file).version
67
}
78

0 commit comments

Comments
 (0)