From 216fca1cec269ea5a0c414a02c7c87d64daa4e80 Mon Sep 17 00:00:00 2001 From: Nico Domino Date: Sat, 28 Sep 2024 17:29:48 +0200 Subject: [PATCH] fix: simplify crates/package.json setup (#4986) --- crates/gitbutler-tauri/tauri.conf.json | 4 ++-- crates/package.json | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/crates/gitbutler-tauri/tauri.conf.json b/crates/gitbutler-tauri/tauri.conf.json index 207f140508..e0b38fcaf5 100644 --- a/crates/gitbutler-tauri/tauri.conf.json +++ b/crates/gitbutler-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "build": { - "beforeDevCommand": "cd ../ && pnpm dev:internal-tauri", - "beforeBuildCommand": "[ $CI = true ] || cd ../ && pnpm build:desktop -- --mode development", + "beforeDevCommand": "pnpm dev:internal-tauri", + "beforeBuildCommand": "[ $CI = true ] || pnpm build:desktop -- --mode development", "devPath": "http://localhost:1420", "distDir": "../../apps/desktop/build", "withGlobalTauri": false diff --git a/crates/package.json b/crates/package.json index f28a6905ed..a36eede3f2 100644 --- a/crates/package.json +++ b/crates/package.json @@ -1,4 +1,9 @@ { - "name": "crates", - "description": "Required for Vercel / pnpm-workspace CI" + "name": "@gitbutler/crates", + "description": "Required for Vercel / pnpm-workspace CI", + "scripts": { + "build:desktop": "pnpm --workspace-root build:desktop", + "dev:internal-tauri": "pnpm --workspace-root dev:internal-tauri" + }, + "packageManager": "pnpm@9.5.0" }