UNPKG

@aziontech/opennextjs-azion

Version:
14 lines (13 loc) 516 B
import { createRequire } from "node:module"; import { join } from "node:path"; import { fileURLToPath, URL } from "node:url"; export function getVersion() { const require = createRequire(import.meta.url); const __dirname = fileURLToPath(new URL(".", import.meta.url)); const pkgJson = require(join(__dirname, "../../../../package.json")); return { azion: pkgJson.version, aws: pkgJson.dependencies["@opennextjs/aws"], bundler: pkgJson.dependencies["edge-functions"], }; }