*We no longer need to bundle the code
This commit is contained in:
parent
7c6bb6297e
commit
7edc23d8b9
20
build.js
20
build.js
|
@ -1,20 +0,0 @@
|
||||||
const esbuild = require("esbuild");
|
|
||||||
|
|
||||||
esbuild.buildSync({
|
|
||||||
entryPoints: ["build/index.js"],
|
|
||||||
outdir: "node-dist",
|
|
||||||
platform: "node",
|
|
||||||
target: ["node18"],
|
|
||||||
bundle: true,
|
|
||||||
format: "cjs",
|
|
||||||
mainFields: ["main"],
|
|
||||||
external: [
|
|
||||||
"udx-native",
|
|
||||||
"sodium-native",
|
|
||||||
"loady",
|
|
||||||
"bcrypto",
|
|
||||||
],
|
|
||||||
define: {
|
|
||||||
"global.GENTLY": false,
|
|
||||||
},
|
|
||||||
});
|
|
|
@ -13,8 +13,8 @@
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"prebuild": "bash prebuild.sh",
|
"prebuild": "bash prebuild.sh",
|
||||||
"bundle": "node build.js",
|
"bundle": "node build.js",
|
||||||
"package": "pkg -c pkg.json node-dist/index.js -t linux --public",
|
"package": "pkg -c pkg.json build/index.js -t linux --public",
|
||||||
"package-debug": "pkg -c pkg.json node-dist/index.js -b -t linux --no-bytecode --public",
|
"package-debug": "pkg -c pkg.json build/index.js -b -t linux --no-bytecode --public",
|
||||||
"build": "npm run compile && npm run prebuild && npm run bundle && npm run package",
|
"build": "npm run compile && npm run prebuild && npm run bundle && npm run package",
|
||||||
"barebuild": "npm run compile && npm run bundle && npm run package"
|
"barebuild": "npm run compile && npm run bundle && npm run package"
|
||||||
},
|
},
|
||||||
|
@ -56,7 +56,6 @@
|
||||||
"@types/express": "^4.17.13",
|
"@types/express": "^4.17.13",
|
||||||
"@types/minimatch": "^3.0.5",
|
"@types/minimatch": "^3.0.5",
|
||||||
"@types/node-fetch": "^2.6.2",
|
"@types/node-fetch": "^2.6.2",
|
||||||
"esbuild": "^0.14.49",
|
|
||||||
"hyper-typings": "^1.0.0",
|
"hyper-typings": "^1.0.0",
|
||||||
"pkg": "^5.8.0",
|
"pkg": "^5.8.0",
|
||||||
"prebuildify": "^5.0.1",
|
"prebuildify": "^5.0.1",
|
||||||
|
|
Loading…
Reference in New Issue