supercov 0.0.19 → 0.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supercov",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Zero-edit, runner-aware coverage completeness for JavaScript test suites",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -68,12 +68,12 @@
68
68
  "prepublishOnly": "npm run release:check"
69
69
  },
70
70
  "optionalDependencies": {
71
- "@supercov/cli-darwin-arm64": "0.0.19",
72
- "@supercov/cli-darwin-x64": "0.0.19",
73
- "@supercov/cli-linux-arm64-gnu": "0.0.19",
74
- "@supercov/cli-linux-arm64-musl": "0.0.19",
75
- "@supercov/cli-linux-x64-gnu": "0.0.19",
76
- "@supercov/cli-linux-x64-musl": "0.0.19"
71
+ "@supercov/cli-darwin-arm64": "0.0.20",
72
+ "@supercov/cli-darwin-x64": "0.0.20",
73
+ "@supercov/cli-linux-arm64-gnu": "0.0.20",
74
+ "@supercov/cli-linux-arm64-musl": "0.0.20",
75
+ "@supercov/cli-linux-x64-gnu": "0.0.20",
76
+ "@supercov/cli-linux-x64-musl": "0.0.20"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@playwright/test": ">=1.55.0",
@@ -546,7 +546,14 @@ function injectChildEnvironment(method, args) {
546
546
  const environment = existingEnvironment
547
547
  ? { ...existingEnvironment, ...inherited }
548
548
  : { ...process.env, ...inherited };
549
- environment.NODE_OPTIONS = appendNodeImport(existingEnvironment?.NODE_OPTIONS ?? process.env.NODE_OPTIONS, pathToFileURL(resolve(process.env["SUPERCOV_PROJECT_ROOT"] ?? process.cwd(), ".supercov/register.mjs")).href);
549
+ // The register path must come from THIS module's own location, never from
550
+ // the environment or the working directory. Monorepo runners both defeat
551
+ // the old derivation at once: turbo's strict env strips SUPERCOV_PROJECT_ROOT
552
+ // from task children, and it runs each task with cwd inside the package --
553
+ // so the fallback fabricated packages/<name>/.supercov/register.mjs and
554
+ // every task aborted with ERR_MODULE_NOT_FOUND. launchSupervisor.js is
555
+ // generated into the same .supercov directory as register.mjs.
556
+ environment.NODE_OPTIONS = appendNodeImport(existingEnvironment?.NODE_OPTIONS ?? process.env.NODE_OPTIONS, new URL("./register.mjs", import.meta.url).href);
550
557
  next[index] = { ...options, env: environment };
551
558
  if (typeof original === "function")
552
559
  next.splice(index + 1, 0, original);