refactor: read installed version using the package.json
This commit is contained in:
parent
b8181f421d
commit
030d37ddc0
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ export async function isNpx() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function installedVersion() {
|
export async function installedVersion() {
|
||||||
return (/musescore-downloader@([\d\.]+)/).exec((await exec('npm list -g musescore-downloader')).stdout)![1].trim()
|
return require('../package.json').version
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function latestVersion() {
|
export async function latestVersion() {
|
||||||
|
|
Loading…
Reference in a new issue