chore: 配置项目开发环境并重构接口路由前缀
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

1.  添加 .node-version 和 .npmrc 配置文件,使用 Volta 锁定 Node.js 18.16.0 版本,强制使用 pnpm 作为包管理器
2.  更新 package.json,添加 packageManager 和 engines 字段限制依赖安装版本,替换 npm 脚本为 pnpm
3.  重构设备管理模块的接口 BASE 路径和路由路径,统一命名为 device_model/device_category
4.  完善 README.md,新增环境要求、安装启动流程、常用命令和目录结构说明
This commit is contained in:
sheng
2026-06-02 14:26:17 +08:00
parent f1e73f3319
commit 8b587163df
6 changed files with 265 additions and 200 deletions

8
.npmrc Normal file
View File

@@ -0,0 +1,8 @@
# pnpm 配置
# 强制通过 pnpm 安装,禁止使用 npm / yarn
engine-strict=true
# 使用 lockfile 锁定依赖版本
lockfile=true
# 依赖提升模式(兼容旧项目)
shamefully-hoist=true
# 允许在 package.json 中通过 packageManager 字段指定包管理器版本