@lark-apaas/coding-template-nestjs-react-fullstack 0.1.31-alpha.20260827112855 → 0.1.31-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/package.json +1 -1
- package/template/nest-cli.json +1 -10
- package/template/package-lock.json +1699 -46
- package/template/package.json +6 -4
- package/template/scripts/build.sh +0 -12
- package/template/vite.config.ts +1 -1
package/template/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "./scripts/dev.sh",
|
|
13
|
-
"dev:server": "NODE_ENV=development nest start --watch",
|
|
13
|
+
"dev:server": "NODE_ENV=development nest start --watch --builder swc --type-check",
|
|
14
14
|
"dev:client": "NODE_ENV=development vite --config vite.config.ts",
|
|
15
15
|
"gen:db-schema": "npx -y @lark-apaas/db-schema-sync@latest --output server/database/schema.ts --export-custom-types",
|
|
16
16
|
"gen:openapi": "echo 'UNSUPPORTED, SKIP'",
|
|
@@ -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/cache-manager": "^3.1.3",
|
|
39
38
|
"@nestjs/common": "^10.4.20",
|
|
39
|
+
"@nestjs/cache-manager": "^3.1.3",
|
|
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.67",
|
|
66
|
-
"@lark-apaas/coding-preset-vite-react": "1.0.20-alpha.20260827110844",
|
|
67
66
|
"@lark-apaas/fullstack-presets": "^1.1.0",
|
|
67
|
+
"@lark-apaas/fullstack-vite-preset": "^1.0.36",
|
|
68
68
|
"@nestjs/cli": "^10.4.9",
|
|
69
69
|
"@nestjs/testing": "^10.4.20",
|
|
70
70
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
"@reduxjs/toolkit": "^2.9.0",
|
|
97
97
|
"@shikijs/langs": "^3.21.0",
|
|
98
98
|
"@shikijs/themes": "^3.21.0",
|
|
99
|
+
"@swc/cli": "^0.5.2",
|
|
100
|
+
"@swc/core": "^1.16.1",
|
|
99
101
|
"@tailwindcss/postcss": "^4.1.13",
|
|
100
102
|
"@tailwindcss/typography": "^0.5.19",
|
|
101
103
|
"@tiptap/core": "^3.14.0",
|
|
@@ -181,7 +183,7 @@
|
|
|
181
183
|
"typescript-eslint": "^8.44.0",
|
|
182
184
|
"uuid": "11.0.5",
|
|
183
185
|
"vaul": "^1.1.2",
|
|
184
|
-
"vite": "^
|
|
186
|
+
"vite": "^7.3.1",
|
|
185
187
|
"xlsx": "^0.18.5",
|
|
186
188
|
"xlsx-js-style": "^1.2.0",
|
|
187
189
|
"zod": "^3.25.76",
|
|
@@ -94,18 +94,6 @@ 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
|
-
|
|
109
97
|
# 清理无用文件
|
|
110
98
|
rm -rf "$ROOT_DIR/dist/scripts"
|
|
111
99
|
rm -rf "$ROOT_DIR/dist/tsconfig.node.tsbuildinfo"
|
package/template/vite.config.ts
CHANGED