Skip to content

Commit a5b0744

Browse files
committed
Upgrade dependencies and enhance scripts
1 parent 2bd2cc7 commit a5b0744

File tree

6 files changed

+629
-374
lines changed

6 files changed

+629
-374
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626

2727
- run: pnpm install
2828

29-
- run: pnpm prettier --check .
29+
- run: pnpm typecheck
30+
31+
- run: pnpm format:check
3032

3133
- run: pnpm lint
3234

CLAUDE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ Comments explain what code does or why it exists:
4747
## Build and Test Commands
4848

4949
- Build: `pnpm build`
50-
- Watch mode: `pnpm watch` (or `pnpm watch:all`)
50+
- Watch mode: `pnpm watch`
5151
- Package: `pnpm package`
52-
- Format: `pnpm fmt`
53-
- Format check: `pnpm fmt:check`
52+
- Type check: `pnpm typecheck`
53+
- Format: `pnpm format`
54+
- Format check: `pnpm format:check`
5455
- Lint: `pnpm lint`
5556
- Lint with auto-fix: `pnpm lint:fix`
56-
- All unit tests: `pnpm test` (or `pnpm test:all`)
57+
- All unit tests: `pnpm test`
5758
- Extension tests: `pnpm test:extension`
5859
- Webview tests: `pnpm test:webview`
5960
- CI mode: `pnpm test:ci`

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Key patterns:
9494
### Development
9595

9696
```bash
97-
pnpm watch:all # Rebuild extension and webviews on changes
97+
pnpm watch # Rebuild extension and webviews on changes
9898
```
9999

100100
Press F5 to launch the Extension Development Host. Use "Developer: Reload Webviews"
@@ -128,8 +128,8 @@ The project uses Vitest with separate test configurations for extension and webv
128128
```bash
129129
pnpm test:extension # Extension tests (runs in Electron with mocked VS Code APIs)
130130
pnpm test:webview # Webview tests (runs in jsdom)
131-
pnpm test:all # Both extension and webview tests
132-
pnpm test:ci # CI mode (same as test:all with CI=true)
131+
pnpm test # Both extension and webview tests
132+
pnpm test:ci # CI mode (same as test with CI=true)
133133
```
134134

135135
Test files are organized by type:

package.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@
2121
"build": "pnpm build:webviews && tsc --noEmit && node esbuild.mjs",
2222
"build:production": "NODE_ENV=production pnpm build:webviews && tsc --noEmit && node esbuild.mjs --production",
2323
"build:webviews": "pnpm -r --filter \"./packages/*\" build",
24-
"fmt": "prettier --write --cache --cache-strategy content .",
25-
"fmt:check": "prettier --check --cache --cache-strategy content .",
24+
"format": "prettier --write --cache --cache-strategy content .",
25+
"format:check": "prettier --check --cache --cache-strategy content .",
2626
"lint": "eslint --cache --cache-strategy content .",
2727
"lint:fix": "pnpm lint --fix",
2828
"package": "vsce package --no-dependencies",
2929
"package:prerelease": "vsce package --pre-release --no-dependencies",
3030
"test": "CI=true pnpm test:extension && CI=true pnpm test:webview",
3131
"test:ci": "pnpm test",
3232
"test:extension": "ELECTRON_RUN_AS_NODE=1 electron node_modules/vitest/vitest.mjs --project extension",
33-
"test:integration": "tsc -p test --outDir out && node esbuild.mjs && vscode-test",
33+
"test:integration": "tsc -p test --outDir out --noCheck && node esbuild.mjs && vscode-test",
3434
"test:webview": "vitest --project webview",
3535
"vscode:prepublish": "pnpm build:production",
36-
"watch": "pnpm watch:all",
37-
"watch:all": "concurrently -n extension,webviews \"pnpm watch:extension\" \"pnpm watch:webviews\"",
36+
"watch": "concurrently -n extension,webviews \"pnpm watch:extension\" \"pnpm watch:webviews\"",
3837
"watch:extension": "node esbuild.mjs --watch",
3938
"watch:webviews": "pnpm -r --filter \"./packages/*\" --parallel dev"
4039
},
@@ -448,7 +447,7 @@
448447
},
449448
"dependencies": {
450449
"@peculiar/x509": "^1.14.3",
451-
"axios": "1.13.4",
450+
"axios": "1.13.5",
452451
"date-fns": "^4.1.0",
453452
"eventsource": "^4.1.0",
454453
"find-process": "^2.0.0",
@@ -466,7 +465,7 @@
466465
"@eslint/js": "^9.39.2",
467466
"@eslint/markdown": "^7.5.1",
468467
"@testing-library/react": "^16.3.2",
469-
"@tsconfig/node20": "^20.1.8",
468+
"@tsconfig/node20": "^20.1.9",
470469
"@types/mocha": "^10.0.10",
471470
"@types/node": "^20",
472471
"@types/proper-lockfile": "^4.1.4",
@@ -476,43 +475,43 @@
476475
"@types/ua-parser-js": "0.7.39",
477476
"@types/vscode": "^1.95.0",
478477
"@types/ws": "^8.18.1",
479-
"@typescript-eslint/eslint-plugin": "^8.53.1",
480-
"@typescript-eslint/parser": "^8.53.1",
478+
"@typescript-eslint/eslint-plugin": "^8.54.0",
479+
"@typescript-eslint/parser": "^8.54.0",
481480
"@vitejs/plugin-react-swc": "catalog:",
482-
"@vitest/coverage-v8": "^4.0.16",
481+
"@vitest/coverage-v8": "^4.0.18",
483482
"@vscode/test-cli": "^0.0.12",
484483
"@vscode/test-electron": "^2.5.2",
485484
"@vscode/vsce": "^3.7.1",
486485
"bufferutil": "^4.1.0",
487486
"coder": "github:coder/coder#main",
488487
"concurrently": "^9.2.1",
489488
"dayjs": "^1.11.19",
490-
"electron": "^40.0.0",
491-
"esbuild": "^0.27.2",
489+
"electron": "^40.2.1",
490+
"esbuild": "^0.27.3",
492491
"eslint": "^9.39.2",
493492
"eslint-config-prettier": "^10.1.8",
494493
"eslint-import-resolver-typescript": "^4.4.4",
495494
"eslint-plugin-import-x": "^4.16.1",
496495
"eslint-plugin-package-json": "^0.88.2",
497-
"eslint-plugin-react": "^7.37.0",
498-
"eslint-plugin-react-hooks": "^5.0.0",
499-
"globals": "^17.0.0",
500-
"jsdom": "^27.4.0",
496+
"eslint-plugin-react": "^7.37.5",
497+
"eslint-plugin-react-hooks": "^7.0.1",
498+
"globals": "^17.3.0",
499+
"jsdom": "^28.0.0",
501500
"jsonc-eslint-parser": "^2.4.2",
502501
"memfs": "^4.56.10",
503-
"prettier": "^3.7.4",
502+
"prettier": "^3.8.1",
504503
"react": "catalog:",
505504
"react-dom": "catalog:",
506505
"typescript": "catalog:",
507-
"typescript-eslint": "^8.53.1",
506+
"typescript-eslint": "^8.54.0",
508507
"utf-8-validate": "^6.0.6",
509508
"vite": "catalog:",
510-
"vitest": "^4.0.16"
509+
"vitest": "^4.0.18"
511510
},
512511
"extensionPack": [
513512
"ms-vscode-remote.remote-ssh"
514513
],
515-
"packageManager": "pnpm@10.27.0",
514+
"packageManager": "pnpm@10.28.1",
516515
"engines": {
517516
"vscode": "^1.95.0",
518517
"node": ">= 20"

0 commit comments

Comments
 (0)