REA .npmignore notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

.npmignore / package.json#files pin publish-set identity. In REA 6.7.x, treat selected exclude/files pins as Evidence beside archive/package routes — without inventing APIs.

Mental model

  1. Authorize the .npmignore / files field (+ artifacts you hold).
  2. Quote selected exclude or include pins you actually see.
  3. Docker cousin → rea-dockerignore; workspaces cousin → rea-npm-workspaces.
  4. Bind absolute paths honestly → rea-absolute-paths.
  5. Do not invent an npmignore API REA never called.

Minimal path

# authorized .npmignore / package.json#files (+ artifact you hold)
# quote selected publish-exclude pins into case notes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_npmignore .

Compare

ArtifactHonest posture
.npmignore / filesPublish-exclude identity facts
dockerignore cousinrea-dockerignore
gitignore cousinrea-gitignore-patterns
Evidence binderrea-evidence-explained

Scope we will not cover

  • No inventing inspect_npmignore / automatic publish rewrites.
  • No credential theft from package contents or tokens.
  • No pirate redistribution of paid artifacts.
  • No crack framing via ignore pins.

RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.

FAQ

What does this page cover?

It zooms on .npmignore / package.json#files publish-exclude pins as Evidence — not an npm publish tutorial, and not an invented REA product API.

Is there inspect_npmignore in 6.7.0?

Not assumed. Quote exclude/files pins you actually open, then use documented package/archive lanes. Do not invent inspect_npmignore.

Does REA rewrite npm ignore rules or steal secrets from them?

No. Local trees only. Do not treat REA as a publish configurator; redact secrets in Evidence.

.npmignore vs .gitignore / .dockerignore?

Label Evidence by the file present. Keep this npm lane separate from rea-gitignore-patterns and rea-dockerignore.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources