mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 12:59:13 +01:00
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:
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,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user