diff --git a/build.js b/build.js deleted file mode 100644 index b8be1af..0000000 --- a/build.js +++ /dev/null @@ -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, - }, -}); diff --git a/package.json b/package.json index 104c5e5..a7e6d68 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "compile": "tsc", "prebuild": "bash prebuild.sh", "bundle": "node build.js", - "package": "pkg -c pkg.json node-dist/index.js -t linux --public", - "package-debug": "pkg -c pkg.json node-dist/index.js -b -t linux --no-bytecode --public", + "package": "pkg -c pkg.json build/index.js -t linux --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", "barebuild": "npm run compile && npm run bundle && npm run package" }, @@ -56,7 +56,6 @@ "@types/express": "^4.17.13", "@types/minimatch": "^3.0.5", "@types/node-fetch": "^2.6.2", - "esbuild": "^0.14.49", "hyper-typings": "^1.0.0", "pkg": "^5.8.0", "prebuildify": "^5.0.1",