*We no longer need to bundle the code

This commit is contained in:
Derrick Hammer 2022-09-21 10:12:09 -04:00
parent 7c6bb6297e
commit 7edc23d8b9
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 23 deletions

View File

@ -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,
},
});

View File

@ -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",