Switch deployment to npm and sync pnpm-lock.yaml with lunar-javascript.

Use npm ci/install in deploy script and docs to avoid frozen pnpm lockfile failures on the server.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 20:51:35 +08:00
parent fff77dac3f
commit e44cdf913e
4 changed files with 48 additions and 21 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ echo "==> 拉取最新代码..."
git pull origin main
echo "==> 安装依赖..."
pnpm install --frozen-lockfile
npm ci || npm install
echo "==> 生产构建..."
pnpm run build
npm run build
echo "==> 确保日志目录存在..."
mkdir -p logs