UNPKG

395 BPlain TextView Raw
1import { fileURLToPath, URL } from 'url';
2import fs from 'fs';
3
4import { deepFreeze } from '@stryker-mutator/util';
5
6const pkg = deepFreeze(
7 JSON.parse(fs.readFileSync(fileURLToPath(new URL('../../package.json', import.meta.url)), 'utf-8')) as {
8 version: string;
9 engines: { node: string };
10 },
11);
12
13export const strykerVersion = pkg.version;
14export const strykerEngines = pkg.engines;