diff --git a/macropad-relay/package.json b/macropad-relay/package.json index 3c73796..4247ca2 100644 --- a/macropad-relay/package.json +++ b/macropad-relay/package.json @@ -2,11 +2,12 @@ "name": "macropad-relay", "version": "1.0.0", "description": "Relay server for MacroPad remote access", - "main": "index.js", + "main": "dist/index.js", "scripts": { + "postinstall": "npm run build", + "build": "tsc", + "start": "node dist/index.js", "dev": "nodemon --exec ts-node src/index.ts", - "build": "tsc && cp -r public dist/", - "start": "node index.js", "clean": "rm -rf dist" }, "keywords": ["macropad", "relay", "websocket", "proxy"], @@ -19,6 +20,7 @@ "express": "^4.18.2", "express-rate-limit": "^7.1.5", "helmet": "^7.1.0", + "typescript": "^5.3.2", "uuid": "^9.0.0", "winston": "^3.11.0", "ws": "^8.14.2" @@ -30,7 +32,6 @@ "@types/uuid": "^9.0.6", "@types/ws": "^8.5.9", "nodemon": "^3.0.2", - "ts-node": "^10.9.2", - "typescript": "^5.3.2" + "ts-node": "^10.9.2" } }