Description Goal
Make npm publish contents explicit by adding files to every repo-managed package.json that is currently missing it.
Prevent accidental publish of unwanted files, including unintended source maps.
Background
The org-wide packaging policy now requires package.json.files on every repo-managed manifest.
npm publish uses files as an allowlist, so relying only on ignore rules is too easy to get wrong.
Scope
Add files to the missing repo-managed manifests listed below.
Keep each files array minimal and aligned with the actual runtime or distribution surface.
Exclude .map files unless this repo intentionally ships source maps and documents why.
Update release or verification steps only as much as needed to validate the packed contents.
Out of Scope
Broader release automation changes unrelated to files.
API or package contract redesign.
Publish Surface
Touched repo-managed manifests:
Required files changes:
Add explicit allowlists for the manifests above.
Keep root, workspace, and app manifests explicit even when they are private.
Verification plan for packed contents:
Run npm pack --dry-run or the package manager equivalent for the affected package(s).
Confirm that accidental .map or source-only files are not included.
Acceptance Criteria
PR Plan
Expected GitHub Pull Request count: 1
Keep the change focused on package.json, any minimal verification updates, and related docs/tests only.
Proposed Plan
Inspect the current manifest and release surface.
Add files to the missing repo-managed manifests.
Verify the packed contents and trim anything unnecessary before opening the PR.
Notes
This issue is part of the org-wide package.json.files rollout.
Reactions are currently unavailable
You can’t perform that action at this time.
Goal
filesto every repo-managedpackage.jsonthat is currently missing it.Background
package.json.fileson every repo-managed manifest.filesas an allowlist, so relying only on ignore rules is too easy to get wrong.Scope
filesto the missing repo-managed manifests listed below.filesarray minimal and aligned with the actual runtime or distribution surface..mapfiles unless this repo intentionally ships source maps and documents why.Out of Scope
files.Publish Surface
package.jsonfileschanges:npm pack --dry-runor the package manager equivalent for the affected package(s)..mapor source-only files are not included.Acceptance Criteria
package.jsonlisted above definesfiles.filesentries are minimal and do not include accidental.mapfiles by default.PR Plan
package.json, any minimal verification updates, and related docs/tests only.Proposed Plan
filesto the missing repo-managed manifests.Notes
package.json.filesrollout.