mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
514500bb72
Make version.js runnable to output the current version, get the VERSION variable in the Taskfile from this script.
10 lines
263 B
JavaScript
10 lines
263 B
JavaScript
const path = require("path");
|
|
const packageJson = require(path.resolve(__dirname, "package.json"));
|
|
|
|
const VERSION = `${packageJson.version}`;
|
|
module.exports = VERSION;
|
|
|
|
if (typeof require !== "undefined" && require.main === module) {
|
|
console.log(VERSION);
|
|
}
|