feat: add multi-tab dev runner and i18n type generation #253
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
pnpm dev): 使用 Bun PTY 支持同时运行多个开发命令i18next-cli在 typecheck 前自动生成类型,解决 tsc 性能问题Changes
新增文件
scripts/dev.tsscripts/dev/types.tsscripts/dev/commands.tsscripts/dev/process-manager.tsscripts/dev/control-panel.tsscripts/i18n-types.tsscripts/i18n-types-watch.ts修改文件
package.json: 新增dev,i18n:typesscripts;typecheck:run前置 i18n 类型生成tsconfig.app.json: 移除src/i18n/**exclude.gitignore: 添加生成的 i18n 类型文件Usage
解决的问题
src/i18n/**被 exclude 导致的类型检查缺失问题i18next.d.ts引用大量 JSON 导致的 tsc 性能问题