vercel avatar

List Npm Package Content

vercel/aiOfficial

Inspect the exact files an npm package will ship by building and listing its tarball before publish.

CCM score
66 of 100
skills.sh installs
1.7K
GitHub stars
28.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the pre-publish check: build the package, create a tarball, list its contents, and clean up automatically
  • Runs from the package directory with bash scripts/list-package-files.sh, so no manual packing or cleanup is needed
  • Explains which rules decide inclusion: the files field in package.json, then .npmignore, then .gitignore as fallback
  • Designed for verifying bundle contents or debugging npm publish issues before a release goes out

Install

$ npx -y skills add vercel/ai --skill list-npm-package-content -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

  1. files field in package.json - explicit allowlist of files/directories
  2. .npmignore - files to exclude (if present)
  3. .gitignore - used if no .npmignore exists
  4. Always included: package.json, README, LICENSE, CHANGELOG
  5. Always excluded: .git, node_modules, .npmrc, etc.

Details

Repository
github.com/vercel/ai
Categories
CLI & Terminal, DevOps & Cloud
First seen
Apr 16, 2026

More from vercel/ai

All 8

Similar to List Npm Package Content

More CLI & Terminal