Skip to content

Commit

Permalink
feat: introduce ignorePrivate flag
Browse files Browse the repository at this point in the history
closes #66
  • Loading branch information
antongolub committed Mar 31, 2022
1 parent 7b61d78 commit e4891c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
7 changes: 6 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -50,6 +51,10 @@ const cli = meow(
type: "string",
default: "patch",
},
ignorePrivate: {
type: "boolean",
default: true,
},
ignorePackages: {
type: "string",
},
Expand Down
2 changes: 1 addition & 1 deletion lib/multiSemanticRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e4891c9

Please sign in to comment.