diff --git a/README.md b/README.md index 433f6017..ba243178 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,10 @@ CLI flag options: --debug Output debugging information. --sequential-init Avoid hypothetical concurrent initialization collisions. --first-parent Apply commit filtering to current branch only. + --ignore-private Exclude private packages. True by default. --ignore-packages Packages list to be ignored on bumping process (append to the ones that already exist at package.json workspaces) --deps.bump Define deps version updating rule. Allowed: override, satisfy, inherit. - --deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit. + --deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit. --tag-format Format to use for creating tag names. Should include "name" and "version" vars. Default: "${name}@${version}" generates "package-name@1.0.0" --help Help info. diff --git a/bin/cli.js b/bin/cli.js index 73894b39..c313aa60 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -17,7 +17,8 @@ const cli = meow( --first-parent Apply commit filtering to current branch only. --deps.bump Define deps version updating rule. Allowed: override, satisfy, inherit. --deps.release Define release type for dependent package if any of its deps changes. Supported values: patch, minor, major, inherit. - --ignore-packages Packages' list to be ignored on bumping process + --ignore-packages Packages list to be ignored on bumping process + --ignore-private Exclude private packages. Enabled by default, pass 'no-ignore-private' to disable. --tag-format Format to use for creating tag names. Should include "name" and "version" vars. Default: "\${name}@\${version}" generates "package-name@1.0.0" --help Help info. @@ -50,6 +51,10 @@ const cli = meow( type: "string", default: "patch", }, + ignorePrivate: { + type: "boolean", + default: true, + }, ignorePackages: { type: "string", }, diff --git a/lib/multiSemanticRelease.js b/lib/multiSemanticRelease.js index 96a4c35c..601a3e7a 100644 --- a/lib/multiSemanticRelease.js +++ b/lib/multiSemanticRelease.js @@ -74,7 +74,7 @@ async function multiSemanticRelease( const { queue } = await topo({ cwd, workspaces, - filter: ({ manifest }) => !manifest.private, + filter: ({ manifest }) => !flags.ignorePrivate || !manifest.private, }); // Load packages from paths.