chore(mp): lane 名字真源落 appId、sync 回收 lane 规范字段、workspace 排除内嵌子包
- apps/mp/manifest.json:4 个 lane 的 appId 从 PLACEHOLDER 换成源工程 project.config.json 的实测值(usedcar wx570d9331f9ace0bd / sales wxe10067a63c1856ac / store wxc50d04ae5aa9984a / points wx7ce755e425603084),并记下 sales 的 glsx-common-sdk Version 已本地化 - scripts/sync-mp-apps.mjs:模板刻意不写 "type": "module"(lane 自带代码与 node 测试 都是 CommonJS,带上会全红,也让 devtool 构建 npm 的清单与源工程不一致); lint 收窄为 eslint src、main 固定 app.js;对已存在的 lane 只回收规范字段并打印 drift,不覆盖业务字段;ESLint 配置由 .js 改 .mjs 自证 ESM(4 个 lane 同步) - pnpm-workspace.yaml:排除 apps/mp/usedcar/packageUsedCar —— 它是微信「构建 npm」的 输入、依赖来自 glsx 私有源,成为 workspace 成员会让整仓 install 失败; 必须写精确路径,通配会让 turbo 把整个 mp lane 一起排掉 - 三个 lane 的 package.json 补齐第三方依赖声明,lockfile 落定 @vant/weapp / dayjs / number-precision / rfdc / glsx-applet-component@1.1.29 / glsk-map-jssdk@0.1.1 / miniprogram-automator(根 package.json 里 miniprogram-automator>jimp 的 override 随门禁提交一起落盘) - scripts/check-boundaries.mjs 本次只是换行格式对齐,mp 规则口径未变
Showing
7 changed files
with
60 additions
and
20 deletions
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment