build(ci): 建立单仓工具链与质量门禁
统一 pnpm 10 + Node 24.15.0 + Turborepo 单仓,落地 ESLint 9 flat、Prettier、commitlint、husky 与 Gitea CI,作为后续批次的一致门禁。
This commit is contained in:
1 parent
75cedbe97b
commit
b3a2a843bb
21 files changed
+10622
No files matched your search
@@ -0,0 +1,10 @@
|
||||
const userAgent = process.env.npm_config_user_agent ?? '';
|
||||
|
||||
if (!userAgent.startsWith('pnpm/')) {
|
||||
console.error('');
|
||||
console.error('✗ 灵犀项目只允许使用 pnpm 10 安装依赖(见 AGENTS.md §3)。');
|
||||
console.error(' 请执行:corepack enable && pnpm install');
|
||||
console.error(' 或使用:npx pnpm@10.34.9 install');
|
||||
console.error('');
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user