chore: modernize dependencies and migrate to ESM#137
Merged
Conversation
- Remove 11 unused devDependencies (react ecosystem, c8, ts-node, ts-prune, jsdom) - Remove 4 unused scripts (build:frontend, dev:frontend, preview, check:unused:all) - Migrate ts-prune → knip for unused export detection - Migrate CJS → ESM across all scripts/ and bin/ files - Upgrade Biome v1 → v2, vitest v3 → v4, vite v5 → v6, @types/node v20 → v22 - Update tsconfig: target ES2020 → ES2022, module commonjs → Node16 - Make agent/skill docs environment-independent (remove hardcoded script names) Co-Authored-By: Claude Opus 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
Details
Dependencies removed (11)
react, react-dom, @types/react, @types/react-dom, @vitejs/plugin-react, @testing-library/react, @testing-library/jest-dom, jsdom, c8, ts-node, ts-prune
Dependencies added
knip (replaces ts-prune)
Dependencies upgraded
ESM migration
All files in
scripts/andbin/converted from CommonJS (require/module.exports) to ES Modules (import/export) withnode:protocol for Node.js builtins.Agent/skill updates (en/ja)
ts-prunebuild:frontendTest plan
node scripts/set-language.js --status— language status displaynode scripts/set-language.js ja— language switchingnode scripts/show-coverage.js— coverage check (expected exit 1 without coverage data)node scripts/utils.js— ESM exports verifiednode bin/create-project.js --help— CLI help displaynode scripts/setup-project.js /tmp/test-project en— new project creation (verified: no react/ts-prune, has knip, type=module)node scripts/update-project.js --dry-run— update dry-runnpm run check— Biome v2 check passesnpm run build— TypeScript build passes🤖 Generated with Claude Code