Merge pull request #85 from sijinhui/dev

fix pack
This commit is contained in:
sijinhui 2024-05-03 17:19:42 +08:00 committed by GitHub
commit 6382a4d29f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,15 +1,15 @@
#!/bin/bash
set -e
# 加速
yarn config set registry 'https://registry.npmmirror.com/'
yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
#yarn config set registry 'https://registry.npmmirror.com/'
#yarn config set sharp_binary_host "https://npm.taobao.org/mirrors/sharp"
#yarn config set sharp_libvips_binary_host "https://npm.taobao.org/mirrors/sharp-libvips"
# 官方
#yarn config delete registry
#yarn config delete sharp_binary_host
#yarn config delete sharp_libvips_binary_host
yarn config delete registry
yarn config delete sharp_binary_host
yarn config delete sharp_libvips_binary_host
#yarn cache clean
yarn cache clean
yarn install
#if command -v cnpm &> /dev/null
#then