Lock down @yao-pkg/pkg dependency

This commit is contained in:
Sander Declerck 2025-12-03 11:38:27 +01:00
parent aa441e7483
commit 0fd54b159b
No known key found for this signature in database
3 changed files with 1441 additions and 9 deletions

View file

@ -103,14 +103,10 @@ async function copyAndModifyPackageJson() {
function buildSafeChainBinary(target) {
return new Promise((resolve, reject) => {
const pkg = spawn(
"npx",
["@yao-pkg/pkg", "./build/package.json", "-t", target],
{
stdio: "inherit",
shell: true,
}
);
const pkg = spawn("./node_modules/.bin/pkg", ["./build/package.json", "-t", target], {
stdio: "inherit",
shell: true,
});
pkg.on("close", (code) => {
if (code !== 0) {