Skip to content

Commit cdd3859

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

File tree

6 files changed

+630
-374
lines changed

6 files changed

+630
-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: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@
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",
35+
"typecheck": "concurrently -g \"tsc --noEmit\" \"tsc --noEmit -p test\"",
3536
"vscode:prepublish": "pnpm build:production",
36-
"watch": "pnpm watch:all",
37-
"watch:all": "concurrently -n extension,webviews \"pnpm watch:extension\" \"pnpm watch:webviews\"",
37+
"watch": "concurrently -n extension,webviews \"pnpm watch:extension\" \"pnpm watch:webviews\"",
3838
"watch:extension": "node esbuild.mjs --watch",
3939
"watch:webviews": "pnpm -r --filter \"./packages/*\" --parallel dev"
4040
},
@@ -448,7 +448,7 @@
448448
},
449449
"dependencies": {
450450
"@peculiar/x509": "^1.14.3",
451-
"axios": "1.13.4",
451+
"axios": "1.13.5",
452452
"date-fns": "^4.1.0",
453453
"eventsource": "^4.1.0",
454454
"find-process": "^2.0.0",
@@ -466,7 +466,7 @@
466466
"@eslint/js": "^9.39.2",
467467
"@eslint/markdown": "^7.5.1",
468468
"@testing-library/react": "^16.3.2",
469-
"@tsconfig/node20": "^20.1.8",
469+
"@tsconfig/node20": "^20.1.9",
470470
"@types/mocha": "^10.0.10",
471471
"@types/node": "^20",
472472
"@types/proper-lockfile": "^4.1.4",
@@ -476,43 +476,43 @@
476476
"@types/ua-parser-js": "0.7.39",
477477
"@types/vscode": "^1.95.0",
478478
"@types/ws": "^8.18.1",
479-
"@typescript-eslint/eslint-plugin": "^8.53.1",
480-
"@typescript-eslint/parser": "^8.53.1",
479+
"@typescript-eslint/eslint-plugin": "^8.54.0",
480+
"@typescript-eslint/parser": "^8.54.0",
481481
"@vitejs/plugin-react-swc": "catalog:",
482-
"@vitest/coverage-v8": "^4.0.16",
482+
"@vitest/coverage-v8": "^4.0.18",
483483
"@vscode/test-cli": "^0.0.12",
484484
"@vscode/test-electron": "^2.5.2",
485485
"@vscode/vsce": "^3.7.1",
486486
"bufferutil": "^4.1.0",
487487
"coder": "github:coder/coder#main",
488488
"concurrently": "^9.2.1",
489489
"dayjs": "^1.11.19",
490-
"electron": "^40.0.0",
491-
"esbuild": "^0.27.2",
490+
"electron": "^40.2.1",
491+
"esbuild": "^0.27.3",
492492
"eslint": "^9.39.2",
493493
"eslint-config-prettier": "^10.1.8",
494494
"eslint-import-resolver-typescript": "^4.4.4",
495495
"eslint-plugin-import-x": "^4.16.1",
496496
"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",
497+
"eslint-plugin-react": "^7.37.5",
498+
"eslint-plugin-react-hooks": "^7.0.1",
499+
"globals": "^17.3.0",
500+
"jsdom": "^28.0.0",
501501
"jsonc-eslint-parser": "^2.4.2",
502502
"memfs": "^4.56.10",
503-
"prettier": "^3.7.4",
503+
"prettier": "^3.8.1",
504504
"react": "catalog:",
505505
"react-dom": "catalog:",
506506
"typescript": "catalog:",
507-
"typescript-eslint": "^8.53.1",
507+
"typescript-eslint": "^8.54.0",
508508
"utf-8-validate": "^6.0.6",
509509
"vite": "catalog:",
510-
"vitest": "^4.0.16"
510+
"vitest": "^4.0.18"
511511
},
512512
"extensionPack": [
513513
"ms-vscode-remote.remote-ssh"
514514
],
515-
"packageManager": "pnpm@10.27.0",
515+
"packageManager": "pnpm@10.28.2",
516516
"engines": {
517517
"vscode": "^1.95.0",
518518
"node": ">= 20"

0 commit comments

Comments
 (0)