chore(nx/desktop): rename scripts to avoid collision with server

This commit is contained in:
Elian Doran 2025-05-01 11:28:05 +03:00
parent 4689ef213c
commit 6e29b050af
No known key found for this signature in database

View File

@ -34,8 +34,7 @@
}, },
"packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f", "packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f",
"scripts": { "scripts": {
"start-prod": "nx build desktop && cross-env TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=dist TRILIUM_PORT=37841 electron dist/main.js", "start-prod": "nx build desktop && cross-env TRILIUM_DATA_DIR=data TRILIUM_RESOURCE_DIR=dist TRILIUM_PORT=37841 electron dist/main.js"
"rebuild": "electron-rebuild"
}, },
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"author": { "author": {
@ -47,7 +46,7 @@
"nx": { "nx": {
"name": "desktop", "name": "desktop",
"targets": { "targets": {
"postbuild": { "rebuild-deps": {
"executor": "nx:run-commands", "executor": "nx:run-commands",
"dependsOn": [ "build" ], "dependsOn": [ "build" ],
"defaultConfiguration": "default", "defaultConfiguration": "default",
@ -63,7 +62,7 @@
}, },
"serve": { "serve": {
"executor": "nx:run-commands", "executor": "nx:run-commands",
"dependsOn": [ "postbuild" ], "dependsOn": [ "rebuild-deps" ],
"defaultConfiguration": "default", "defaultConfiguration": "default",
"configurations": { "configurations": {
"default": { "default": {