Skip to content

Commit d005126

Browse files
authored
Merge pull request #10529 from Byron/fix
speed up tauri builds by preventing cache trashing!
2 parents 16fe91b + 68aeafd commit d005126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"scripts": {
1111
"dev:ui": "pnpm --filter @gitbutler/ui storybook",
1212
"dev:web": "turbo watch --filter @gitbutler/web dev",
13-
"dev:desktop": "cargo build -p but && cargo build -p gitbutler-git && pnpm tauri dev",
13+
"dev:desktop": "export CARGO_TARGET_DIR=$PNPM_SCRIPT_SRC_DIR/target/tauri && cargo build -p but && cargo build -p gitbutler-git && pnpm tauri dev",
1414
"dev:internal-tauri": "turbo watch --filter @gitbutler/desktop dev",
1515
"package": "turbo run package",
1616
"test": "turbo run test --no-daemon",
@@ -24,7 +24,7 @@
2424
"build:test": "pnpm exec tauri build --config crates/gitbutler-tauri/tauri.conf.test.json -- --profile dev",
2525
"start:desktop": "pnpm --filter @gitbutler/desktop run preview",
2626
"check": "turbo run check --no-daemon",
27-
"tauri": "tauri",
27+
"tauri": "export CARGO_TARGET_DIR=$PNPM_SCRIPT_SRC_DIR/target/tauri && tauri",
2828
"lint": "turbo run //#globallint --no-daemon",
2929
"globallint": "prettier --check . && eslint .",
3030
"prettier": "prettier --check",

0 commit comments

Comments
 (0)