Skip to content

Commit

Permalink
Properly resolve jsii-pacmak
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainMuller committed Aug 8, 2018
1 parent 6ec383a commit 1fccefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/cdk-build-tools/bin/cdk-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1fccefa

Please sign in to comment.