Skip to content

chore: update repo tooling and demo dependencies#218

Open
benpsnyder wants to merge 1 commit into
aleclarson:v7from
benpsnyder:chore/repo-deps-update
Open

chore: update repo tooling and demo dependencies#218
benpsnyder wants to merge 1 commit into
aleclarson:v7from
benpsnyder:chore/repo-deps-update

Conversation

@benpsnyder

@benpsnyder benpsnyder commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Modernizes repo tooling and brings the demo app up to date with current ecosystem versions.

Oxlint Type-Aware Linting

  • Enabled --type-aware and --type-check flags in the lint script, leveraging oxlint-tsgolint for TypeScript type-checked linting
  • Expanded lint scope to include test/ and scripts/ (previously only src/)
  • Added --ignore-pattern for test/__fixtures__ and **/dist to skip generated/fixture files
  • Added scripts/tsconfig.json so type-aware linting covers build scripts

Root Dependency Updates

  • typescript: 5.x → 6.0.2
  • oxlint: → ^1.57.0 (with type-aware support)
  • oxfmt: → ^0.42.0
  • oxc-transform: → ^0.121.0
  • rolldown: → 1.0.0-rc.12
  • Added pnpm.peerDependencyRules for tsconfck > typescript ^6.0.0

Demo App Modernization

  • React: 16.x → 19.x (ReactDOM.rendercreateRoot)
  • Express: 4.x → 5.x (wildcard route '*''/{*path}')
  • Vite: *>=5.0.0 <=7 (pinned to supported range)
  • @vitejs/plugin-react: 2.x → 5.x (compatible with Vite 5–7)
  • TypeScript: 4.x → 6.x
  • sirv-cli: 1.x → 3.x
  • Fixed demo/tsconfig.json: removed deprecated baseUrl, added isolatedDeclarations: false, set rootDir, fixed paths to use relative prefixes

Test Fixes

  • Fixed type error in test/plugin.test.ts for untyped resolvedBy property on ResolvedId

Test plan

  • pnpm lint passes with type-aware linting across src/, test/, and scripts/
  • pnpm test passes
  • Demo dev server resolves @/* path aliases correctly
  • Demo production build completes successfully with bundled CSS from aliased imports

🤖 Generated with Claude Code

- Added peer dependency rules for `tsconfck` in package.json.
- Updated linting command to include type-aware checks and ignore patterns.
- Upgraded various dependencies in package.json and pnpm-lock.yaml, including `typescript`, `oxlint`, `oxfmt`, and `rolldown`.
- Set `rootDir` in tsconfig.json for better project structure.
- Modified demo package.json to use updated versions of `express`, `react`, and `vite`.
- Adjusted server routing in demo/server.mjs for improved path handling.
- Introduced a new tsconfig.json for scripts to ensure type checking for Node.js.
- Updated main.jsx to use the new React 18 API for rendering.
@benpsnyder benpsnyder changed the title chore: update dependencies and configuration across project files chore: update repo tooling and demo dependencies Mar 29, 2026
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.

1 participant