From 85a219724876f34545ac18f2d661b1e41606121a Mon Sep 17 00:00:00 2001 From: nat Date: Mon, 22 Apr 2024 17:48:56 +0200 Subject: [PATCH] add prepare command --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 707232f6a..b13103fea 100644 --- a/package.json +++ b/package.json @@ -35,13 +35,14 @@ "lint:fix": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs --fix .", "format": "prettier --write '**/*.{yml,json,md,html,ts,js}'", "format:check": "prettier --check '**/*.{yml,json,md,html,ts,js}'", - "prod": "npm run compile && npm run bundle && npm run launch", + "prepare": "npm run compile && sleep 4 && npm run bundle", + "prod": "npm run prepare && npm run launch", "compile": "npm run copy-assets && tsc --project tsconfig.build.json", "compile:watch": "npm run copy-assets && tsc --project tsconfig.build.json -w", - "build": "npm run compile && sleep 4 && npm run bundle && sleep 4 && electron-builder", + "build": "npm run prepare && sleep 4 && electron-builder", "copy-assets": "shx mkdir -p ./compiled/main/windows && shx cp ./main/windows/*.png ./compiled/main/windows", "publish": "electron-builder -c.snap.publish=github", - "release": "npm run compile && sleep 4 && npm run bundle && sleep 4 && npm run publish", + "release": "npm run prepare && sleep 4 && npm run publish", "postinstall": "electron-builder install-app-deps", "test": "npm run test:unit && npm run test:e2e", "test:exec": "jest --detectOpenHandles --runInBand",