From 7edc23d8b9fcbc7313ccaf189c6ee94d226a8d94 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 10:12:09 -0400 Subject: [PATCH] *We no longer need to bundle the code --- build.js | 20 -------------------- package.json | 5 ++--- 2 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 build.js 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",