chore: migrate toolchain to TypeScript 5.5, Vite, Vitest, and ESLint v9#83
Closed
chore: migrate toolchain to TypeScript 5.5, Vite, Vitest, and ESLint v9#83
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/Rokt-Kit.js(ES5) tosrc/Rokt-Kit.ts(TypeScript 5.5, strict mode, class-based).d.tstype declarations.eslintrcwith ESLint v9 flat config (eslint.config.mjs).nvmrcto Node 24Test plan
npm run lint— zero errorsnpm run build— producesdist/Rokt-Kit.iife.js,dist/Rokt-Kit.common.js,dist/Rokt-Kit.d.tsnpm run test— 158/158 tests pass in Vitest/jsdom🤖 Generated with Claude Code