Skip to content

Commit

Permalink
Fix(cli): the problem of isListablePackage condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mino01x committed Oct 19, 2022
1 parent 1d3f9f2 commit 334f7d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/add/isListablePackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function isListablePackage(config: Config, packageJson: PackageJSON) {
return false;
}

if (!config.privatePackages && packageJson.private) {
if (!config.privatePackages?.version && packageJson.private) {
return false;
}

Expand Down

0 comments on commit 334f7d6

Please sign in to comment.