From 6f727417700a7307b092c5425b73a2723e11b932 Mon Sep 17 00:00:00 2001 From: Connor Turland <1409121+Connoropolous@users.noreply.github.com> Date: Wed, 25 Oct 2023 11:02:10 -0700 Subject: [PATCH] fixups for package.json --- electron/package.json | 3 ++- package.json | 6 +++--- zod-models/package.json | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/electron/package.json b/electron/package.json index 4d5162a4..57eb01c2 100644 --- a/electron/package.json +++ b/electron/package.json @@ -7,7 +7,8 @@ "start": "tsc && electron .", "build": "tsc && electron-builder build", "tsc": "tsc", - "lint": "eslint --ext .ts ." + "lint": "eslint --ext .ts .", + "postinstall": "npm run tsc" }, "keywords": [], "author": { diff --git a/package.json b/package.json index df5cd296..f30e4f2d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "scripts": { "dev": "pm2-dev pm2.config.js", "user-data-reset": "rm -rf user-data && mkdir user-data", - "zod-models-build": "npm run build -w zod-models", "web": "WEB_PORT=8081 ADMIN_WS_PORT=1101 APP_WS_PORT=8101 npm run dev -w web", "web2": "WEB_PORT=8082 ADMIN_WS_PORT=1102 APP_WS_PORT=8102 npm run dev -w web", "web3": "WEB_PORT=8083 ADMIN_WS_PORT=1103 APP_WS_PORT=8103 npm run dev -w web", @@ -23,10 +22,11 @@ "electron3": "WEB_PORT=8083 ACORN_AGENT_NUM=3 npm run start -w electron", "electron4": "WEB_PORT=8084 ACORN_AGENT_NUM=4 npm run start -w electron", "electron-tsc": "npm run tsc -w electron", - "build": "bash scripts/build.sh", "download-happs": "bash scripts/download-happs.sh", + "zod-models-build": "npm run build -w zod-models", + "build": "bash scripts/build.sh", "storybook": "npm run storybook -w web", - "postinstall": "npm run download-happs && npm run electron-tsc && npm run zod-models-build" + "postinstall": "npm run download-happs" }, "author": "Connor Turland ", "license": "CAL-1.0", diff --git a/zod-models/package.json b/zod-models/package.json index 5a108bfc..86359b65 100644 --- a/zod-models/package.json +++ b/zod-models/package.json @@ -5,7 +5,8 @@ "main": "dist/zodModels.js", "scripts": { "build": "npx tsc", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "postinstall": "npm run build" }, "author": "", "license": "ISC",