Skip to content

A local-first personal finance app

chore: update root yarn scripts to use `workspace` command instead of cd

Tom French5dad1070b68f
diff --git a/package.json b/package.json
index f0497d0153..7e12c5e615 100644
--- a/package.json
+++ b/package.json
@@ -43,18 +43,18 @@
},
"scripts": {
"start": "npm-run-all --parallel start:desktop-*",
- "start:desktop-node": "cd packages/loot-core && yarn watch:node",
- "start:desktop-client": "cd packages/desktop-client && yarn watch",
- "start:desktop-electron": "cd packages/desktop-electron && yarn watch",
+ "start:desktop-node": "yarn workspace loot-core watch:node",
+ "start:desktop-client": "yarn workspace @actual-app/web watch",
+ "start:desktop-electron": "yarn workspace Actual watch",
"start:browser": "npm-run-all --parallel start:browser-*",
- "start:browser-backend": "cd packages/loot-core && yarn watch:browser",
- "start:browser-frontend": "cd packages/desktop-client && yarn start:browser",
+ "start:browser-backend": "yarn workspace loot-core watch:browser",
+ "start:browser-frontend": "yarn workspace @actual-app/web start:browser",
"test": "./node_modules/.bin/jest --maxWorkers=4",
"test:debug": "node ./node_modules/.bin/jest --runInBand --useStderr",
"test:debug-brk": "node --inspect-brk ./node_modules/.bin/jest --runInBand",
"rebuild-electron": "./node_modules/.bin/electron-rebuild -f -m ./packages/loot-core",
- "rebuild-node": "cd packages/loot-core && npm rebuild",
- "lint": "cd packages/loot-core && yarn lint",
+ "rebuild-node": "yarn workspace loot-core rebuild",
+ "lint": "yarn workspace loot-core lint",
"postinstall": "rm -rf ./packages/loot-design/node_modules/react && rm -rf ./packages/mobile/node_modules/react && rm -rf ./node_modules/react-native && patch-package"
},
"devDependencies": {