summary refs log tree commit diff
path: root/package.json
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-11 11:05:09 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-07-11 11:05:09 +0200
commite70cdfe2823f86d281cd76d2896186703dbf6de5 (patch)
treedc06401e7ce87220174f6826bb7c4d035ea7cf78 /package.json
parent:pencil: add uncompression message to releases (diff)
downloadserver-e70cdfe2823f86d281cd76d2896186703dbf6de5.tar.xz
:art: clean up bundle script
Diffstat (limited to 'package.json')
-rw-r--r--package.json21
1 files changed, 3 insertions, 18 deletions
diff --git a/package.json b/package.json
index 36f98070..7d971585 100644
--- a/package.json
+++ b/package.json
@@ -11,23 +11,9 @@
 		"start": "npm run build && node dist/start",
 		"build": "tsc -b .",
 		"dev": "tsnd --respawn src/start.ts",
-		"bundle": "npm run build && pkg --no-bytecode --public-packages=* package.json"
-	},
-	"pkg": {
-		"scripts": [
-			"dist/**/*.js"
-		],
-		"assets": [
-			"locales",
-			"assets",
-			"client_test"
-		],
-		"targets": [
-			"latest-linux-x64",
-			"latest-win-x64",
-			"latest-macos-x64"
-		],
-		"outputPath": "build"
+		"bundle:macos": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-macos.app.tgz' 'fosscord-api.app'",
+		"bundle:linux": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-linux.tgz' 'fosscord'",
+		"bundle:windows": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'"
 	},
 	"repository": {
 		"type": "git",
@@ -89,7 +75,6 @@
 		"0x": "^4.10.2",
 		"caxa": "^2.1.0",
 		"jest": "^26.6.3",
-		"pkg": "^5.3.0",
 		"saslprep": "^1.0.3",
 		"ts-node": "^9.1.1",
 		"ts-node-dev": "^1.1.6",