@lark-apaas/fullstack-cli 1.1.28-alpha.4 → 1.1.28-alpha.6

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/fullstack-cli",
3
- "version": "1.1.28-alpha.4",
3
+ "version": "1.1.28-alpha.6",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -83,12 +83,17 @@ STEP_START=$(node -e "console.log(Date.now())")
83
83
 
84
84
  mkdir -p "$OUT_DIR/dist/client"
85
85
 
86
- # 拷贝 HTML
87
- cp "$ROOT_DIR/dist/client/"*.html "$OUT_DIR/dist/client/" || true
86
+ # 移动 HTML(从 dist/client 移走,避免残留)
87
+ mv "$ROOT_DIR/dist/client/"*.html "$OUT_DIR/dist/client/" || true
88
88
 
89
89
  # 拷贝 run.sh 文件
90
90
  cp "$ROOT_DIR/scripts/run.sh" "$OUT_DIR/"
91
91
 
92
+ # 拷贝 .env 文件(如果存在)
93
+ if [ -f "$ROOT_DIR/.env" ]; then
94
+ cp "$ROOT_DIR/.env" "$OUT_DIR/"
95
+ fi
96
+
92
97
  # 清理无用文件
93
98
  rm -rf "$ROOT_DIR/dist/scripts"
94
99
  rm -rf "$ROOT_DIR/dist/tsconfig.node.tsbuildinfo"