mirror of
https://github.com/enso-org/enso.git
synced 2024-11-24 08:41:40 +03:00
14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
const fs = require("fs");
|
|
|
|
const path = "build.sbt";
|
|
const version = process.argv[2];
|
|
|
|
const content = fs.readFileSync(path, { encoding: "utf-8" });
|
|
const updated = content.replace(
|
|
/val ensoVersion.*= ".*"/g,
|
|
'val ensoVersion = "' + version + '"'
|
|
);
|
|
fs.writeFileSync(path, updated);
|
|
|
|
console.log("Updated build version to " + version);
|