Skip to content

chore: upgrade dependencies and parallelize build pipeline#837

Merged
EhabY merged 3 commits intomainfrom
chore/upgrade-dependencies
Mar 13, 2026
Merged

chore: upgrade dependencies and parallelize build pipeline#837
EhabY merged 3 commits intomainfrom
chore/upgrade-dependencies

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 12, 2026

  • Upgrade dependencies: proxy-agent v6→v7, esbuild 0.27.3→0.27.4, Vite 7→8, Vitest 4.0→4.1, TypeScript ESLint 8.56→8.57, Electron 40→41, pnpm 10.30→10.32, and others
  • Switch to moduleResolution: "Bundler" for proxy-agent v7 compatibility (its exports field requires Bundler or NodeNext resolution)
  • Parallelize the build pipeline: webview builds and extension bundling now run concurrently (~1s vs 3.3s)
  • Separate type-checking from building into a dedicated typecheck script — esbuild and Vite handle TypeScript transpilation, so tsc is only needed for validation
  • Remove unused composite project references and declaration emit from workspace packages (all packages export raw .ts source; emitted .d.ts files were unused)
  • Add per-package typecheck scripts, auto-discovered via pnpm -r
  • Unify production detection: both esbuild and Vite now read NODE_ENV
  • Replace vscode:prepublish with explicit build steps in package scripts and CI workflows to avoid vsce invoking npm (which warns about pnpm config)
  • Extension bundle size reduced ~25% (2.7MB → 2.0MB) from proxy-agent v7's smaller dependency tree

@EhabY EhabY self-assigned this Mar 12, 2026
@EhabY EhabY force-pushed the chore/upgrade-dependencies branch from 3beef77 to c070100 Compare March 12, 2026 15:58
proxy-agent v7 uses the `exports` field in package.json, which requires
moduleResolution "Bundler" or "NodeNext". Since esbuild handles bundling
to CJS, "Bundler" + "ESNext" is the correct TypeScript configuration for
type-checking only. Also update test type casts for the new ProxyAgentOptions
union type.
@EhabY EhabY force-pushed the chore/upgrade-dependencies branch from c070100 to ee3f6cd Compare March 12, 2026 16:05
- Run webview builds and extension bundling concurrently (~1s vs 3.3s)
- Separate type-checking from build into dedicated typecheck script
- Remove unused composite project references and declaration emit
- Add per-package typecheck scripts, auto-discovered via pnpm -r
- Unify production detection: esbuild and Vite both read NODE_ENV
- Replace vscode:prepublish with explicit build in package scripts/CI
- Clean up stale .gitignore and eslint ignores for packages/*/dist
- Fix vi.mock("vscode") placement warning in certificate error tests
@EhabY EhabY changed the title fix: upgrade dependencies and switch to Bundler module resolution for proxy-agent compatibility chore: upgrade dependencies and parallelize build pipeline Mar 12, 2026
@EhabY EhabY force-pushed the chore/upgrade-dependencies branch from 872d476 to 164ac84 Compare March 13, 2026 11:42
- Switch from deprecated babel config to @rolldown/plugin-babel + reactCompilerPreset()
- Add @rolldown/plugin-babel@^0.2.1 to catalog and devDependencies
- Add @types/babel__core for proper type resolution in pnpm workspaces
@EhabY EhabY force-pushed the chore/upgrade-dependencies branch from 164ac84 to 62413be Compare March 13, 2026 13:51
@EhabY EhabY merged commit 55e8486 into main Mar 13, 2026
6 checks passed
@EhabY EhabY deleted the chore/upgrade-dependencies branch March 13, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants