diff --git a/Jenkinsfile b/Jenkinsfile index 50f7c86..c9b0b39 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,6 +22,14 @@ pipeline { sh ''' rm -rf node_modules package-lock.json npm config set registry https://registry.npmmirror.com + + # 检查并移除恶意依赖 + if grep -q "vab-contextmenu" package.json; then + echo "发现恶意依赖vab-contextmenu,正在移除..." + npm uninstall vab-contextmenu + fi + + # 安装其他依赖 npm install ''' }