From 5ec9e069a022f0282a4c4baecabe4dd09f01af08 Mon Sep 17 00:00:00 2001 From: Ben Chaimberg Date: Tue, 6 Jul 2021 10:30:50 -0700 Subject: [PATCH] fix(build): explicit non-private package not respected in packaging (#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 #15203 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- tools/cdk-build-tools/lib/package-info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cdk-build-tools/lib/package-info.ts b/tools/cdk-build-tools/lib/package-info.ts index 2ed8abff6171b..56e1fcacd3410 100644 --- a/tools/cdk-build-tools/lib/package-info.ts +++ b/tools/cdk-build-tools/lib/package-info.ts @@ -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 {