Fix: 帮助文档打包失败v2

This commit is contained in:
2026-04-01 18:56:51 +08:00
parent 5b0acede89
commit ad29502488
4 changed files with 3996 additions and 8750 deletions

View File

@@ -1,6 +1,13 @@
#!/bin/bash
# Fix lodash.template assignWith issue for Linux/Mac servers - V2
# Run this script after npm/yarn install
# Emergency patch for lodash.template@4.18.x only. Skip when overrides pin 4.5.0.
# Run after npm install on Linux/Mac if needed.
if [ -f "node_modules/lodash.template/package.json" ]; then
VER=$(node -p "require('./node_modules/lodash.template/package.json').version" 2>/dev/null || echo "")
case "$VER" in
4.5.*) echo "✓ lodash.template is $VER; skip manual patch"; exit 0 ;;
esac
fi
LODGASH_TEMPLATE="node_modules/lodash.template/index.js"