list-npm-package-content
작성자: vercel
npm 패키지 tarball 내용을 게시 전에 검사하여 어떤 파일이 배포될지 확인합니다. npm에 업로드될 정확한 파일 목록을 보여주어, 게시 전에 누락되거나 불필요한 포함 항목을 발견하는 데 도움을 줍니다. package.json의 files 필드, .npmignore 및 .gitignore 규칙을 존중하여 실제 번들 내용을 표시합니다. 단일 명령으로 패키지를 자동 빌드하고, tarball을 생성하며, 내용을 표시하고, 정리까지 수행합니다. 간단한 bash 스크립트로 패키지 디렉토리에서 실행 가능하며, 유용합니다...
npx skills add https://github.com/vercel/ai --skill list-npm-package-contentList 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.