mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
12 lines
254 B
TypeScript
12 lines
254 B
TypeScript
import fs from "fs";
|
|
import path from "path";
|
|
|
|
export const getRefineCoreVersion = () => {
|
|
const packages = fs.readFileSync(
|
|
path.join("..", "core", "package.json"),
|
|
"utf8",
|
|
);
|
|
const { version } = JSON.parse(packages);
|
|
return version;
|
|
};
|