1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-03 02:23:38 +08:00
Files
408CSFamily/scripts/ci

18 lines
504 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
##
## 依赖安装脚本
## 使用:
## ./scripts/ci
##
NPM_REGISTRY="https://mirrors.tencent.com/npm/"
## 获取所有参数
echo "运行命令: export COREPACK_NPM_REGISTRY=$NPM_REGISTRY && corepack enable pnpm && pnpm i --registry $NPM_REGISTRY --frozen-lockfile $*"
# 导出corepack环境变量安装pnpm版本
export COREPACK_NPM_REGISTRY=$NPM_REGISTRY && corepack enable pnpm
# 安装项目依赖 -w -F @142vip/fairy-cli
pnpm i --registry $NPM_REGISTRY --frozen-lockfile "$@"