1 min read

PACKAGE_JSON_PRIVATE_REQUIRED

Requires that every package.json file has the private field set to prevent accidental publishing to npm.
Table of Contents

Conformance is available on Enterprise plans

This check ensures that every package.json has the private field set to true or false. This field ensures that the workspace is not accidentally published to npm. In a monorepo, this should be the default to prevent packages from being accidentally published and can be explicitly set to false to indicate that the package can be published.

Packages should set private to true unless the package is intended to be published in which case it can be explicitly set to false.

Last updated on July 27, 2024