oxmutate 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/child.js CHANGED
@@ -6,6 +6,9 @@ import { BEAT_ENV, beatFile, CPU_SAMPLE_MS } from './heartbeat.js';
6
6
  import { resolveEsm } from './resolve.js';
7
7
  import { ACTIVE_MUTANT_ENV, argv, env, exit, pid } from './runtime.js';
8
8
  import { instrumentedSources } from './vite-plugin.js';
9
+ process.on('disconnect', () => exit(ExitCode.OK));
10
+ if (!process.connected)
11
+ exit(ExitCode.OK);
9
12
  const config = JSON.parse(readFileSync(argv[2] ?? '', 'utf8'));
10
13
  env['NODE_ENV'] ??= 'test';
11
14
  env[BEAT_ENV] = beatFile(path.dirname(config.instrumentedMap), pid);
@@ -103,7 +106,6 @@ process.on('message', (msg) => {
103
106
  void vitest.close().finally(() => exit(ExitCode.OK));
104
107
  }
105
108
  });
106
- process.on('disconnect', () => exit(ExitCode.OK));
107
109
  const sendCpu = () => {
108
110
  const { user, system } = process.cpuUsage();
109
111
  process.send?.({ type: 'cpu', at: Date.now(), us: user + system });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxmutate",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Mutation testing for JavaScript and TypeScript on the oxc engine, run warm inside the project's own Vitest, with CI lanes, SARIF and an agent surface. No dependency outside the burgee family. A Stryker migration path.",
5
5
  "license": "MIT",
6
6
  "repository": {