Skip to content

Commit

Permalink
Merge pull request #8424 from LedgerHQ/support/watch-common
Browse files Browse the repository at this point in the history
chore: add missing watch:es for common
  • Loading branch information
Justkant authored Nov 21, 2024
2 parents 7d8e4fa + 7969130 commit 0430ab8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ledger-live-desktop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ LLD is using vite and will import in priority the esm libs so we need to watch a

```bash
# watch common
pnpm watch:common
pnpm watch:es:common

# watch ljs
pnpm watch:es:ljs
Expand Down
1 change: 1 addition & 0 deletions libs/ledger-live-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"scripts": {
"build": "zx ./scripts/build-ts.mjs",
"watch": "zx ./scripts/watch-ts.mjs",
"watch:es": "zx ./scripts/watch-ts-es.mjs",
"updateAppSupportsQuitApp": "node scripts/updateAppSupportsQuitApp.js",
"prettier": "prettier --write 'src/**/*.?s'",
"lint": "eslint src --cache",
Expand Down
13 changes: 13 additions & 0 deletions libs/ledger-live-common/scripts/watch-ts-es.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env zx
import "zx/globals";

try {
cd(path.join(__dirname, ".."));

await $`zx ./scripts/sync-families-dispatch.mjs`;

await $`pnpm tsc --project src/tsconfig.json -m ES6 --outDir lib-es --watch`;
} catch (error) {
console.log(chalk.red(error));
process.exit(1);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"watch:ljs": "pnpm turbo run watch --filter=\"./libs/ledgerjs/**\" --concurrency 44",
"watch:es:ljs": "pnpm turbo run watch:es --filter=\"./libs/ledgerjs/**\" --concurrency 44",
"watch:common": "pnpm turbo run watch --filter=./libs/ledger-live-common",
"watch:es:common": "pnpm turbo run watch:es --filter=./libs/ledger-live-common",
"dev:cli": "pnpm turbo run watch --filter=@ledgerhq/live-cli",
"dev:lld": "pnpm turbo start --filter=ledger-live-desktop",
"dev:lld:debug": "DEV_TOOLS=1 LEDGER_INTERNAL_ARGS=--inspect ELECTRON_ARGS=--remote-debugging-port=8315 pnpm turbo start --filter=ledger-live-desktop",
Expand Down

0 comments on commit 0430ab8

Please sign in to comment.