@lark-apaas/coding-template-nestjs-react-fullstack 0.1.27-alpha.20260824095517 → 0.1.27-alpha.20260824122418

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-nestjs-react-fullstack",
3
- "version": "0.1.27-alpha.20260824095517",
3
+ "version": "0.1.27-alpha.20260824122418",
4
4
  "description": "NestJS + React fullstack template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": [
@@ -86,11 +86,9 @@ mkdir -p "$OUT_DIR/dist/client"
86
86
  # 拷贝 HTML
87
87
  cp "$ROOT_DIR/dist/client/"*.html "$OUT_DIR/dist/client/" || true
88
88
 
89
- # 拷贝 client/public → 产物根 public/:供 nestjs-core 的 public 中间件在应用根同源 serve
90
- # (修 public 线上 404:同源 fetch('/x') / resolveAppUrl('/x'))。运行时 cwd=OUT_DIR,读 process.cwd()/public。
89
+ # public 随 views 一起进 dist/client(server setBaseViewsDir + nestjs-core 中间件同源 serve)
91
90
  if [ -d "$ROOT_DIR/client/public" ]; then
92
- mkdir -p "$OUT_DIR/public"
93
- cp -R "$ROOT_DIR/client/public/." "$OUT_DIR/public/"
91
+ cp -R "$ROOT_DIR/client/public/." "$OUT_DIR/dist/client/"
94
92
  fi
95
93
 
96
94
  # 拷贝 run.sh 文件