1 | import { fileURLToPath, URL } from 'url';
|
2 | import fs from 'fs';
|
3 |
|
4 | import { deepFreeze } from '@stryker-mutator/util';
|
5 |
|
6 | const 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 |
|
13 | export const strykerVersion = pkg.version;
|
14 | export const strykerEngines = pkg.engines;
|