Sfoglia il codice sorgente

feat: run test before build

Dogtiti 1 anno fa
parent
commit
1287e39cc6
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      package.json

+ 4 - 4
package.json

@@ -6,13 +6,13 @@
         "mask": "npx tsx app/masks/build.ts",
         "mask:watch": "npx watch \"yarn mask\" app/masks",
         "dev": "concurrently -r \"yarn run mask:watch\" \"next dev\"",
-        "build": "yarn mask && cross-env BUILD_MODE=standalone next build",
+        "build": "yarn test:ci && yarn mask && cross-env BUILD_MODE=standalone next build",
         "start": "next start",
         "lint": "next lint",
-        "export": "yarn mask && cross-env BUILD_MODE=export BUILD_APP=1 next build",
+        "export": "yarn test:ci && yarn mask && cross-env BUILD_MODE=export BUILD_APP=1 next build",
         "export:dev": "concurrently -r \"yarn mask:watch\"  \"cross-env BUILD_MODE=export BUILD_APP=1 next dev\"",
         "app:dev": "concurrently -r \"yarn mask:watch\" \"yarn tauri dev\"",
-        "app:build": "yarn mask && yarn tauri build",
+        "app:build": "yarn test:ci && yarn mask && yarn tauri build",
         "prompts": "node ./scripts/fetch-prompts.mjs",
         "prepare": "husky install",
         "proxy-dev": "sh ./scripts/init-proxy.sh && proxychains -f ./scripts/proxychains.conf yarn dev",
@@ -81,4 +81,4 @@
         "lint-staged/yaml": "^2.2.2"
     },
     "packageManager": "yarn@1.22.19"
-}
+}