@lark-apaas/coding-template-nestjs-react-fullstack 0.1.35 → 0.1.36-alpha.20260901072249

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.
@@ -35,8 +35,8 @@
35
35
  "dependencies": {
36
36
  "@lark-apaas/fullstack-nestjs-core": "^1.1.60",
37
37
  "@nestjs/axios": "^4.0.1",
38
- "@nestjs/common": "^10.4.20",
39
38
  "@nestjs/cache-manager": "^3.1.3",
39
+ "@nestjs/common": "^10.4.20",
40
40
  "@nestjs/config": "^3.3.0",
41
41
  "@nestjs/core": "^10.4.20",
42
42
  "@nestjs/platform-express": "^10.4.20",
@@ -63,8 +63,8 @@
63
63
  "@heroicons/react": "^2.2.0",
64
64
  "@hookform/resolvers": "^5.2.2",
65
65
  "@lark-apaas/client-toolkit": "^1.2.69",
66
+ "@lark-apaas/coding-preset-vite-react": "1.0.20-alpha.20260827110844",
66
67
  "@lark-apaas/fullstack-presets": "^1.1.0",
67
- "@lark-apaas/fullstack-vite-preset": "^1.0.37",
68
68
  "@nestjs/cli": "^10.4.9",
69
69
  "@nestjs/testing": "^10.4.20",
70
70
  "@radix-ui/react-accordion": "^1.2.12",
@@ -183,7 +183,7 @@
183
183
  "typescript-eslint": "^8.44.0",
184
184
  "uuid": "11.0.5",
185
185
  "vaul": "^1.1.2",
186
- "vite": "^7.3.1",
186
+ "vite": "^8",
187
187
  "xlsx": "^0.18.5",
188
188
  "xlsx-js-style": "^1.2.0",
189
189
  "zod": "^3.25.76",
@@ -94,6 +94,18 @@ cp "$ROOT_DIR/dist/client/"*.html "$OUT_DIR/dist/client/" || true
94
94
  # 拷贝 run.sh 文件
95
95
  cp "$ROOT_DIR/scripts/run.sh" "$OUT_DIR/"
96
96
 
97
+ # 拷贝 shared/static → OUT_DIR/shared/static
98
+ # Nest server 生产从 process.cwd() + shared/static 读 (nestjs-core static.controller.ts:100),
99
+ # 生产 cwd = $OUT_DIR (dist/server), 所以目标是 dist/server/shared/static。
100
+ # coding-preset 的 static-assets plugin 之前 closeBundle 拷贝, 现在删除后由 build.sh 显式做。
101
+ # 排除 .ts/.tsx/.js/.jsx: 避免 shared/static/ 里若有开发脚本被误传到生产。
102
+ if [ -d "$ROOT_DIR/shared/static" ]; then
103
+ mkdir -p "$OUT_DIR/shared/static"
104
+ rsync -a --exclude='*.ts' --exclude='*.tsx' --exclude='*.js' --exclude='*.jsx' \
105
+ "$ROOT_DIR/shared/static/" "$OUT_DIR/shared/static/"
106
+ echo " Static → dist/server/shared/static/"
107
+ fi
108
+
97
109
  # 清理无用文件
98
110
  rm -rf "$ROOT_DIR/dist/scripts"
99
111
  rm -rf "$ROOT_DIR/dist/tsconfig.node.tsbuildinfo"
@@ -1,5 +1,5 @@
1
1
  import path from 'path';
2
- import { defineConfig } from '@lark-apaas/fullstack-vite-preset';
2
+ import { defineConfig } from '@lark-apaas/coding-preset-vite-react';
3
3
 
4
4
  export default defineConfig({
5
5
  resolve: {