Skip to content

Commit

Permalink
fix(build): explicit non-private package not respected in packaging
Browse files Browse the repository at this point in the history
The cdk-package build tool skips packaging in private packages by
looking at the value of the "private" entry in package.json.
Currently, this entry must be missing for cdk-package to treat the
package as public, but we should also allow an explicit `false` value.
  • Loading branch information
BenChaimberg committed Jul 6, 2021
1 parent ff044ed commit 0f6b1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cdk-build-tools/lib/package-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function isJsii(): boolean {
* Whether this is a private package
*/
export function isPrivate(): boolean {
return currentPackageJson().private !== undefined;
return currentPackageJson().private;
}

export interface File {
Expand Down

0 comments on commit 0f6b1c8

Please sign in to comment.