将 pnpm workspace 根从项目根移到 libs/,项目根保持纯 Rust,JS 工作区自治: - package.json/pnpm-workspace.yaml/pnpm-lock.yaml/biome.json 迁入 libs/ - pnpm-workspace.yaml glob 从 'libs/*' 改为 '*'(已在 libs/ 内) - biome.json 关闭 vcs.useIgnoreFile(libs/ 无独立 .gitignore, files.includes 已显式排除 node_modules/dist) - Makefile 所有 pnpm/biome 调用加 'cd libs &&' 前缀 Makefile 同步整合 lint/fix(替代独立 clippy/fix target): - make lint = biome check (libs) + cargo clippy - make fix = biome format --write (libs) + cargo fix - 删除 8 个 build-*-incremental/build-* target,改为 build-libs 聚合 + build-<name> 用 pnpm --filter 单库便利 target 修复 biome 格式化回归:tiptap-editor/src/index.ts:83 的 sourceTextarea!.value 被 biome 误转为可选链 ?.,导致 TS2345(string | undefined 不匹配 string), 已还原为非空断言。
24 lines
508 B
JSON
24 lines
508 B
JSON
{
|
|
"name": "yggdrasil-workspace",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "pnpm -r run build",
|
|
"test": "pnpm -r run test",
|
|
"typecheck": "pnpm -r run typecheck",
|
|
"lint": "biome check .",
|
|
"format": "biome format --write ."
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.16",
|
|
"happy-dom": "^20.10.6",
|
|
"typescript": "^6.0.3",
|
|
"vite": "^8.1.0",
|
|
"vitest": "^4.1.9"
|
|
},
|
|
"packageManager": "pnpm@11.8.0",
|
|
"engines": {
|
|
"node": ">=20"
|
|
}
|
|
}
|