Merge commit 'd41439601' into validation/runner-paid-matrix-integrity-v5

* commit 'd41439601':
  fix(runner): compile descriptor bundles without import meta
This commit is contained in:
Dotta committed 2026-09-02 18:37:51 -05:00
commit d3173fb626
2 files changed
+13

No files matched your search

@@ -68,6 +68,14 @@ export async function bundleVerifiedProviderEntrypoints({ write = true } = {}) {
treeShaking: true,
write,
logLevel: "silent",
define:
format === "cjs"
? {
"import.meta.dirname": "__dirname",
"import.meta.url":
'require("node:url").pathToFileURL(__filename).href',
}
: undefined,
});
assertSelfContainedBundle(entrypoint, result);
return result;
@@ -16,6 +16,11 @@ test("provider entrypoints include self-contained ESM and descriptor-safe Common
const source = bundle.outputFiles[0].text;
assert.match(source, /^#!\/usr\/bin\/env node\n/);
}
assert.doesNotMatch(
verifiedResult.outputFiles[0].text,
/\bimport\.meta\b/,
entrypoint.name,
);
}
});