mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add certify
This commit is contained in:
parent
161f256066
commit
c59b8263ca
1 changed files with 11 additions and 0 deletions
11
build.js
11
build.js
|
|
@ -15,6 +15,7 @@ if (!target) {
|
|||
await clearOutputFolder();
|
||||
await bundleSafeChain();
|
||||
await copyShellScripts();
|
||||
await copyCertifi();
|
||||
await copyAndModifyPackageJson();
|
||||
await buildSafeChainBinary(target);
|
||||
})();
|
||||
|
|
@ -31,6 +32,7 @@ async function bundleSafeChain() {
|
|||
platform: "node",
|
||||
target: "node24",
|
||||
outfile: "./build/bin/safe-chain.cjs",
|
||||
external: ["certifi"],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -48,6 +50,15 @@ async function copyShellScripts() {
|
|||
{ recursive: true }
|
||||
);
|
||||
}
|
||||
|
||||
async function copyCertifi() {
|
||||
await mkdir("./build/node_modules/certifi", { recursive: true });
|
||||
await cp(
|
||||
"./node_modules/certifi/",
|
||||
"./build/node_modules/certifi",
|
||||
{ recursive: true }
|
||||
);
|
||||
}
|
||||
async function copyAndModifyPackageJson() {
|
||||
const packageJsonContent = await readFile(
|
||||
"./packages/safe-chain/package.json",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue