360 Secure SkillHub
360 安全技能中心

verify-build

通过 bash 脚本在指定项目根目录执行 npm run build,返回合并的构建输出,用于在前端改动合并前发现 Vite/Rollup 打包、导入或类型错误;依赖需用户自行安装,失败后由用户阅读堆栈并修复。

分类:开发
HeyEddi-com
热度 0.00
最近更新 2026-11-05 05:35:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add heyeddi-com/heyeddi-skills/verify-build
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据不出本机
Metadata
name
verify-build
description
Runs npm run build to catch Vite/Rollup failures before merge. Use when validating frontend changes or in CI pre-merge loops.
version
1.0.0
product-version
3.8.7
author
HeyEddi-com
paths
["package.json","**/*.vue","**/*.ts"]

Verify Build

When to use

  • Before opening or approving a PR with frontend changes
  • After refactoring imports, routes, or Vite config
  • When static generation or bundle errors are suspected

Instructions

  1. Ensure dependencies are installed (npm ci or npm install).
  2. Run bash scripts/verify_build.sh --project-root <root>.
  3. If build fails, read the Rollup/Vite stack trace and fix imports or types.
  4. Re-run until output shows success.

Scripts

  • verify_build.sh: executes npm run build and returns combined output