From 0f6b1c80bb2ed66bc2169820107248e22a31eba0 Mon Sep 17 00:00:00 2001 From: Ben Chaimberg Date: Tue, 6 Jul 2021 09:28:47 -0700 Subject: [PATCH] fix(build): explicit non-private package not respected in packaging 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. --- 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 {