ホーム/后端开发/list-npm-package-content
L

list-npm-package-content

by @vercelv
4.9(34)

npmパッケージを公開する前に、そのtarball内のすべてのファイルとディレクトリ構造を詳細にリストアップし、パッケージの内容が期待通りであることを確認し、公開エラーを回避します。

npmNode.jsPackage ManagementJavaScript EcosystemCLI ToolsGitHub
インストール方法
npx skills add vercel/ai --skill list-npm-package-content
compare_arrows

Before / After 効果比較

1
使用前

NPMパッケージを公開する際、最終的にどのファイルが含まれるか不明なため、機密情報や不要なファイルを誤って公開してしまう可能性があり、セキュリティ上の懸念やパッケージサイズの肥大化を招くことがあります。

使用後

公開前にNPMパッケージの全内容を明確にリストアップできるため、事前に確認・調整を行い、公開内容の正確性を確保し、不要なリスクを回避できます。

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:

  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.

forumユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数892
評価4.9 / 5.0
バージョン
更新日2026年3月16日
比較事例1 件

ユーザー評価

4.9(34)
5
0%
4
0%
3
0%
2
0%
1
0%

この Skill を評価

0.0

対応プラットフォーム

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

タイムライン

作成2026年3月16日
最終更新2026年3月16日