fix(extension): compute version name
This commit is contained in:
parent
d3898161b9
commit
216ff4021c
@ -15,6 +15,9 @@ const manifest = JSON.parse(manifestRaw)
|
||||
const pkgRaw = fs.readFileSync("./package.json", "utf-8")
|
||||
const pkg = JSON.parse(pkgRaw)
|
||||
|
||||
manifest["version"] = pkg["version"]
|
||||
ver_str = pkg["version"]
|
||||
if (ver_str.startsWith("v")) ver_str = ver_str.slice(1)
|
||||
manifest["version"] = ver_str
|
||||
|
||||
fs.writeFileSync("./dist/manifest.json", JSON.stringify(manifest), "utf-8")
|
||||
console.log("Write: manifest.json")
|
||||
|
Loading…
Reference in New Issue
Block a user