@nx-devkit/prepare-for-release 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ For each package under `packages/*` (or your `scope` filter):
|
|
|
60
60
|
3. Publishes it with `npm publish --tag placeholder`.
|
|
61
61
|
4. Optionally runs `npm trust github` to bind OIDC trusted publishing to your repo.
|
|
62
62
|
|
|
63
|
-
Already-published packages are skipped on every run.
|
|
63
|
+
Already-published packages are skipped on every run. Packages marked `private: true` are ignored entirely — no `npm view`, no publish.
|
|
64
64
|
|
|
65
65
|
## Options
|
|
66
66
|
|
|
@@ -226,7 +226,7 @@ async function processPackage(pkgJsonPath, resolved, acc) {
|
|
|
226
226
|
const parsed = readPackageJsonSafe(pkgJsonPath);
|
|
227
227
|
if (!parsed) return "ignored";
|
|
228
228
|
const name = typeof parsed.name === "string" ? parsed.name : null;
|
|
229
|
-
if (!name) return "ignored";
|
|
229
|
+
if (!name || parsed.private === true) return "ignored";
|
|
230
230
|
if (!matchesScope(name, resolved.scope)) return "ignored";
|
|
231
231
|
if (isPublished(name, resolved.registry)) {
|
|
232
232
|
acc.skipped.push(name);
|