waveterm/version.cjs

10 lines
263 B
JavaScript
Raw Normal View History

2024-06-12 02:42:10 +02:00
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);
}