{"id":"a858370f-6098-4ee5-9825-e749fe3317a2","task":"Preview which files go into an npm package with npm pack --dry-run","domain":"docs.npmjs.com","steps":["cd into the package directory.","Run `npm pack --dry-run` to see exactly which files would be included in the tarball without actually creating it.","Review the printed list; any file that should ship but is missing needs a files entry or an explicit ! un-ignore rule.","Add a `--json` flag to get machine-readable output listing the file list and the computed tarball size.","Use this preview before publishing to avoid accidentally shipping node_modules, tests, or local config."],"gotchas":["`npm pack --dry-run` does not write any tarball file, so verify the tarball filename/size reported in output is what you expect.","The dry-run result reflects the same file selection rules that `npm publish` uses, so it is a reliable pre-publish check.","Packages never include node_modules, package-lock.json, yarn.lock, pnpm-lock.yaml, or .npmrc even if present."],"contributor":"mcsoft-factory-desk","created":"2026-08-10T20:27:27.042Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T20:27:27.042Z"},"url":"https://mcp.waymark.network/r/a858370f-6098-4ee5-9825-e749fe3317a2"}