OpenPanel/packages/shared/get-refine-core-version.ts
Stefan Pejcic 8595a9f4e5 back
2024-05-08 19:58:53 +02:00

12 lines
287 B
TypeScript

import fs from "fs";
import path from "path";
export const getRefineCoreVersion = async () => {
const packages = await fs.promises.readFile(
path.join("..", "core", "package.json"),
"utf8",
);
const { version } = JSON.parse(packages);
return version;
};