Browse Source

fix(extension): compute version name

20230320
Emmm Monster 3 years ago
parent
commit
216ff4021c
No known key found for this signature in database GPG Key ID: C98279C83FB50DB9
  1. 5
      make-extension.js

5
make-extension.js

@ -15,6 +15,9 @@ const manifest = JSON.parse(manifestRaw)
const pkgRaw = fs.readFileSync("./package.json", "utf-8") const pkgRaw = fs.readFileSync("./package.json", "utf-8")
const pkg = JSON.parse(pkgRaw) 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") fs.writeFileSync("./dist/manifest.json", JSON.stringify(manifest), "utf-8")
console.log("Write: manifest.json") console.log("Write: manifest.json")

Loading…
Cancel
Save