diff --git a/striker-ui-api/package.json b/striker-ui-api/package.json index b8d6638a..14d34694 100644 --- a/striker-ui-api/package.json +++ b/striker-ui-api/package.json @@ -4,7 +4,9 @@ "description": "API for striker-ui", "scripts": { "build": "pkg --compress GZip --output striker-ui-api --targets node14-linux index.js", - "clean": "rm -f striker-ui-api", + "build:clean": "rm -f striker-ui-api", + "compress": "[[ -e striker-ui-api ]] && XZ_OPT='--verbose -9e' tar --create --verbose --xz --file striker-ui-api.tar.xz striker-ui-api || echo 'Cannot find output of build.' && exit 1", + "decompress": "tar --extract --verbose --file striker-ui-api.tar.xz", "dev": "node index.js", "rebuild": "npm run clean && npm run build", "start": "npm run build && ./striker-ui-api",