@stryker-mutator/core
Version:
The extendable JavaScript mutation testing framework
20 lines (16 loc) • 423 B
text/typescript
import { fileURLToPath, URL } from 'url';
import fs from 'fs';
import { deepFreeze } from '@stryker-mutator/util';
const pkg = deepFreeze(
JSON.parse(
fs.readFileSync(
fileURLToPath(new URL('../../package.json', import.meta.url)),
'utf-8',
),
) as {
version: string;
engines: { node: string };
},
);
export const strykerVersion = pkg.version;
export const strykerEngines = pkg.engines;