const esbuild = require("esbuild"); esbuild.buildSync({ entryPoints: ["build/index.js"], outdir: "node-dist", platform: "node", target: ["node18"], bundle: true, format: "cjs", mainFields: ["main"], external: [ "buffer", "buffer-from", "udx-native", "secp256k1", "bigint-buffer", "elliptic", "@pokt-network/amino-js", "@pokt-network/pocket-js", "bufferutil", "utf-8-validate", "msgpackr-extract", "sodium-native", "loady", "bcrypto", "bdb", "hsd", "goosig", "mrmr", "lodash", "through", "JSONStream", "jayson", "msgpackr", "tslib", "async-mutex", "clone", "node-cache", "kademlia-routing-table", "time-ordered-set", "sodium-universal", "b4a", "compact-encoding", "nat-sampler", "fast-fifo", "compact-encoding-net", "dht-rpc", "@hyperswarm/dht", "bsert", "bcfg", "loglevel", "@ethersproject/bignumber", "@ethersproject/logger", "@ethersproject/properties", "@ethersproject/abi", "@ethersproject/bytes", "@ethersproject/abstract-provider", "@ethersproject/abstract-signer", "@ethersproject/keccak256", "@ethersproject/rlp", "@ethersproject/address", "@ethersproject/constants", "@ethersproject/signing-key", "@ethersproject/transactions", "@ethersproject/contracts", "@ethersproject/strings", "@ethersproject/hash", "@ethersproject/basex", "@ethersproject/pbkdf2", "@ethersproject/sha2", "@ethersproject/wordlists", "@ethersproject/hdnode", "@ethersproject/random", "@ethersproject/json-wallets", "@ethersproject/wallet", "@ethersproject/networks", "@ethersproject/base64", "@ethersproject/web", "@ethersproject/providers", "@ethersproject/solidity", "@ethersproject/units", "ethers", "js-sha3", "bech32", "tweetnacl", "@solana/web3.js", "bs32", "binet", "bns", "bsock", "brq", "bcurl", "hs-client", "minimatch", "balanced-match", "brace-expansion", "bignumber.js", "json-bigint", "algosdk", "has-symbols", "function-bind", "has", "get-intrinsic", "call-bind", "object-inspect", "xmlbuilder", "sax", "xml2js", "jsonify", "queue-tick", "safety-catch", "protomux", "bytes", "content-type", "setprototypeof", "statuses", "inherits", "toidentifier", "ms", "debug", "destroy", "unpipe", "express", "bluebird", "ws", "axios", "random-key", "querystringify", "node-cron", "asynckit", "sprintf-js", "json-stable-stringify", "form-data", "mime-types", "mime-db", "skynet-js", "url-join", "url-parse", "requires-port", "@skynetlabs/tus-js-client", "@skynetlabs/skynet-nodejs", "follow-redirects", "date-fns", "acme-client", "path-to-regexp", "array-flatten", "body-parser", "on-finished", "ee-first", "raw-body", "iconv-lite", "safer-buffer", "http-errors", "@hyperswarm/dht-relay", ], define: { "global.GENTLY": false, }, });