From 1fccefa87346b31617c19461dd916c0d870ad676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=91=A8=F0=9F=8F=BC=E2=80=8D=F0=9F=92=BB=20Romain=20M?= =?UTF-8?q?arcadier-Muller?= Date: Wed, 8 Aug 2018 14:00:36 +0200 Subject: [PATCH] Properly resolve jsii-pacmak --- tools/cdk-build-tools/bin/cdk-package.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cdk-build-tools/bin/cdk-package.ts b/tools/cdk-build-tools/bin/cdk-package.ts index 46331b805f593..f8e68bd79baf5 100644 --- a/tools/cdk-build-tools/bin/cdk-package.ts +++ b/tools/cdk-build-tools/bin/cdk-package.ts @@ -36,7 +36,8 @@ async function main() { } if (pkg.jsii) { - await shell([ 'jsii-pacmak', args.verbose ? '-vvv' : '-v', '-o', outdir ], timers); + const pacmak = require.resolve('jsii-pacmak/bin/jsii-pacmak'); + await shell([ pacmak, args.verbose ? '-vvv' : '-v', '-o', outdir ], timers); } else { // just "npm pack" and deploy to "outdir" const tarball = (await shell([ 'npm', 'pack' ], timers)).trim();