chore: 開発ツールチェーンを Vite+ に移行 (tsup/Biome → vp)#8
Merged
Conversation
検証・CI・日常利用をすべて vp コマンドで駆動する統合ツールチェーンへ移行。 - ビルド: tsup → `vp pack` (tsdown)。vite.config.ts の pack ブロックで esm/cjs + dts と iife(min, global `Snowflake`) を再現し、build:done フックで examples へのコピーも移植 - lint/format: Biome → oxlint/oxfmt (`vp check`)。oxfmt は従来の Biome スタイル (tab / lineWidth 100 / double quote / semicolons / trailingComma es5) に合わせ、 Biome 同様 JS/TS のみ整形(md/html/json/yaml は除外)→ 再整形 churn ゼロ - test: vitest 4 + `vp test`(カバレッジ 100% を維持) - typecheck: tsc → tsgolint (`vp check`)。tsgolint 向けに tsconfig へ lib(DOM) / types(node) を明示 - 旧 tsup.config.ts / biome.json / vitest.config.ts を削除し vite.config.ts に集約 - CI / release ワークフローを vp 駆動に変更 (voidzero-dev/setup-vp) - src/index.ts: oxlint が検出した未使用定数 (TIMESTAMP_BITS / SEQUENCE_SHIFT) を削除 - browser.ts:131 の未カバー分岐 (datacenterId 未指定) にテストを追加 - .vscode/settings.json を oxc 拡張向けに更新。.zed / .vite-hooks は vp config が各環境でローカル生成するため gitignore - AGENTS.md を追加(vp ワークフローの手引き) Co-Authored-By: Claude Opus 4.8 (1M context) <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.
概要
開発ツールチェーンを Vite+(VoidZero 統合ツールチェーン) に移行します。検証・CI・日常利用をすべて
vpコマンドで駆動し、設定をvite.config.tsに集約します。ランタイムはゼロ依存のまま、公開物(dist)の内容も従来と同等です。vp pack(tsdown)vp lint(oxlint)vp fmt(oxfmt)vp check(tsgolint)vp test(vitest 4 / vite-plus)主な変更
vite.config.ts(新規・集約):pack(tsdown)で esm/cjs + dts と iife(min, globalSnowflake) を再現。build:doneフックで examples へのコピーも移植。fmt/lint/testブロックも集約lib: [ES2022, DOM, DOM.Iterable]/types: [node]を明示tsup.config.ts/biome.json/vitest.config.tsvoidzero-dev/setup-vpを使いvp install→vp pack/vp check/vp test run --coverageで駆動TIMESTAMP_BITS/SEQUENCE_SHIFT)を削除saveConfigToStorageの datacenterId 未指定)にテストを追加.vscode/settings.jsonを oxc 拡張向けに更新。.zed/.vite-hooksはvp configが各環境でローカル生成するため gitignore検証(すべて
vp直接)vp pack— dist が従来同等(index/node/browserの.js/.cjs/.d.ts/.d.cts+snowflake.min.js)。examples へのコピーも反映vp check— format + lint + typecheck すべてクリーン(警告・エラーなし)vp test run --coverage— 86 件 pass、カバレッジ 100%(Stmts 176/176・Branch 103/103・Funcs 23/23・Lines 172/172)既知事項
vp test --coverageで@vitest/coverage-v8@4.1.8と vp 同梱 vitest(0.1.24 表記)の バージョン表記不一致警告が出ますが、テスト・カバレッジは正しく動作します(非致命)。🤖 Generated with Claude Code