@lark-apaas/fullstack-cli 1.1.64-alpha.20260902123941 → 1.1.64-beta.0
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/dist/index.js +41 -2617
- package/package.json +1 -4
- package/templates/scripts/build.sh +12 -0
- package/templates/scripts/dev.js +54 -700
- package/templates/scripts/server-handoff-runtime.mjs +0 -1904
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-cli",
|
|
3
|
-
"version": "1.1.64-
|
|
3
|
+
"version": "1.1.64-beta.0",
|
|
4
4
|
"description": "CLI tool for fullstack template management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,15 +34,12 @@
|
|
|
34
34
|
"@lark-apaas/http-client": "^0.1.7",
|
|
35
35
|
"@lydell/node-pty": "1.1.0",
|
|
36
36
|
"@vercel/nft": "^0.30.3",
|
|
37
|
-
"acorn": "^8.15.0",
|
|
38
|
-
"acorn-walk": "^8.3.4",
|
|
39
37
|
"commander": "^13.0.0",
|
|
40
38
|
"debug": "^4.4.3",
|
|
41
39
|
"dotenv": "^16.0.0",
|
|
42
40
|
"drizzle-kit": "0.31.5",
|
|
43
41
|
"drizzle-orm": "0.44.6",
|
|
44
42
|
"es-toolkit": "^1.44.0",
|
|
45
|
-
"esbuild": "^0.25.0",
|
|
46
43
|
"inflection": "^3.0.2",
|
|
47
44
|
"pinyin-pro": "^3.27.0",
|
|
48
45
|
"postgres": "^3.4.3",
|
|
@@ -154,6 +154,18 @@ if [ -d "$DIST_DIR/client" ]; then
|
|
|
154
154
|
find "$DIST_DIR/client" -maxdepth 1 -name "*.html" -exec mv {} "$DIST_DIR/dist/client/" \;
|
|
155
155
|
fi
|
|
156
156
|
|
|
157
|
+
# 拷贝 shared/static → dist/shared/static
|
|
158
|
+
# Nest server 生产从 process.cwd() + shared/static 读 (nestjs-core static.controller.ts:100),
|
|
159
|
+
# 生产 cwd = dist/, 所以目标是 dist/shared/static。coding-preset 的 static-assets plugin
|
|
160
|
+
# 之前 closeBundle 拷贝, 现在删除后交给 build.sh 显式做 (跟 jsPage 的 output_static rsync 对齐)。
|
|
161
|
+
# 排除 .ts/.tsx/.js/.jsx: 避免 shared/static/ 里若有开发脚本被误传到生产。
|
|
162
|
+
if [ -d "$ROOT_DIR/shared/static" ]; then
|
|
163
|
+
mkdir -p "$DIST_DIR/shared/static"
|
|
164
|
+
rsync -a --exclude='*.ts' --exclude='*.tsx' --exclude='*.js' --exclude='*.jsx' \
|
|
165
|
+
"$ROOT_DIR/shared/static/" "$DIST_DIR/shared/static/"
|
|
166
|
+
echo " Static → dist/shared/static/"
|
|
167
|
+
fi
|
|
168
|
+
|
|
157
169
|
# server 相关产物准备(only_frontend_change=true 时跳过)
|
|
158
170
|
if [[ "${only_frontend_change:-false}" == "true" ]]; then
|
|
159
171
|
echo " [skip] 跳过 run.sh/.env 复制 (only_frontend_change=true)"
|