Skip to content

chore: migrate toolchain to TypeScript 5.5, Vite, Vitest, and ESLint v9#83

Closed
mattbodle wants to merge 1 commit intomainfrom
chore/migrate-to-typescript-vite-vitest
Closed

chore: migrate toolchain to TypeScript 5.5, Vite, Vitest, and ESLint v9#83
mattbodle wants to merge 1 commit intomainfrom
chore/migrate-to-typescript-vite-vitest

Conversation

@mattbodle
Copy link
Copy Markdown
Collaborator

Summary

  • Migrates source from src/Rokt-Kit.js (ES5) to src/Rokt-Kit.ts (TypeScript 5.5, strict mode, class-based)
  • Replaces Rollup v1 with Vite (library mode) producing IIFE + CJS bundles + .d.ts type declarations
  • Replaces Karma + Mocha/Chai with Vitest + jsdom (158 tests passing, headless — no browser required)
  • Replaces ESLint v7 .eslintrc with ESLint v9 flat config (eslint.config.mjs)
  • Updates Prettier to 120-char width, single quotes, trailing commas
  • Bumps .nvmrc to Node 24

Test plan

  • npm run lint — zero errors
  • npm run build — produces dist/Rokt-Kit.iife.js, dist/Rokt-Kit.common.js, dist/Rokt-Kit.d.ts
  • npm run test — 158/158 tests pass in Vitest/jsdom

🤖 Generated with Claude Code

Replaces the 2019-era ES5/Rollup/Karma/Mocha/Chai stack with a modern
toolchain aligned with the internal sdk-web repo:

- Source: src/Rokt-Kit.js → src/Rokt-Kit.ts (class-based, strict mode)
- Build: Rollup v1 → Vite (IIFE + CJS + .d.ts via vite-plugin-dts)
- Tests: Karma + Mocha/Chai → Vitest + jsdom (158 tests passing)
- Lint: ESLint v7 (.eslintrc) → ESLint v9 flat config (eslint.config.mjs)
- Prettier: updated to 120-char width, single quotes, trailing commas
- Node: .nvmrc bumped to 24

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mattbodle mattbodle closed this Apr 2, 2026
@mattbodle mattbodle deleted the chore/migrate-to-typescript-vite-vitest branch April 2, 2026 02:12
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