zephyr-agent
Version:
Zephyr plugin agent
17 lines (16 loc) • 669 B
JavaScript
import "node:module";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
import { dirname as __rspack_dirname } from "node:path";
var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
function getZephyrAgentVersion() {
try {
const packageJson = JSON.parse(readFileSync(join(__rspack_import_meta_dirname__, '../../../package.json'), 'utf8'));
return packageJson.version ?? 'unknown';
} catch {
return 'unknown';
}
}
export { getZephyrAgentVersion };
//# sourceMappingURL=zephyr-agent-version.mjs.map