PromucFlow_constructor/app/client/packages/rts/src/version.js
Shrikant Sharat Kandula d1f9b2456e
chore: Use version from info.json directly (#29108)
This will bring us one step closer to the `info.json` being the one
source of truth for the version information. We shouldn't need the step
to overwrite the contents of the `version.js` file during build in CI.
2023-11-28 06:32:40 +05:30

9 lines
185 B
JavaScript

import * as fs from "fs";
export const VERSION =
(() => {
try {
return JSON.parse(fs.readFileSync("/opt/appsmith/info.json")).version;
} catch {}
})() || "SNAPSHOT";