Skip to content

Commit

Permalink
fix(build): explicit non-private package not respected in packaging (a…
Browse files Browse the repository at this point in the history
…ws#15435)

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.

fixes aws#15203

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
BenChaimberg authored Jul 6, 2021
1 parent ff044ed commit 31e6b1a
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 31e6b1a

Please sign in to comment.