waveterm/version.cjs
Evan Simkowitz 514500bb72
Get version for Taskfile from version.js (#49)
Make version.js runnable to output the current version, get the VERSION variable in the Taskfile from this script.
2024-06-13 18:11:21 -07:00

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);
}