L
list-npm-package-content
by @vercelv1.0.0
0.0(0)
List the contents of an npm package tarball before publishing. Use when the user wants to see what files are included in an npm bundle, verify package contents, or debug npm publish issues.
安装方式
npx skills add vercel/ai --skill list-npm-package-contentcompare_arrows
Before / After 效果对比
1 组使用前
1在没有检查工具的情况下,开发者在发布npm包时可能不清楚最终打包文件中包含了哪些内容。这可能导致发布不必要的文件(增加包大小)或遗漏关键文件(导致包无法正常工作)。使用后
1使用 `list-npm-package-content` 技能,可以在发布前列出npm包tarball的精确内容。这有助于验证包的完整性,排除不必要的文件,并避免发布后出现问题。
2```bash
3npm pack --dry-run
4```
5(此命令会模拟打包并列出将包含的文件)description SKILL.md
name: list-npm-package-content description: List the contents of an npm package tarball before publishing. Use when the user wants to see what files are included in an npm bundle, verify package contents, or debug npm publish issues. metadata: internal: true
List npm Package Content
This skill lists the exact contents of an npm package tarball - the same files that would be uploaded to npm and downloaded by users.
Usage
Run the script from the package directory (e.g., packages/ai):
bash scripts/list-package-files.sh
The script will build the package, create a tarball, list its contents, and clean up automatically.
Understanding Package Contents
The files included are determined by:
filesfield inpackage.json- explicit allowlist of files/directories.npmignore- files to exclude (if present).gitignore- used if no.npmignoreexists- Always included:
package.json,README,LICENSE,CHANGELOG - Always excluded:
.git,node_modules,.npmrc, etc.
forum用户评价 (0)
发表评价
效果
易用性
文档
兼容性
暂无评价,来写第一条吧
统计数据
安装量0
评分0.0 / 5.0
版本1.0.0
更新日期2026年3月16日
对比案例1 组
用户评分
0.0(0)
5
0%
4
0%
3
0%
2
0%
1
0%
为此 Skill 评分
0.0
兼容平台
🔧Claude Code
时间线
创建2026年3月16日
最后更新2026年3月16日