From fc205d6a577f21cbc63ad34fb65898bf89f34e33 Mon Sep 17 00:00:00 2001 From: Elad Ben-Israel Date: Mon, 6 Aug 2018 17:34:11 +0300 Subject: [PATCH] Add .version file to bundle (#150) --- bundle.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle.sh b/bundle.sh index f2cf9682e3..0247b08af8 100755 --- a/bundle.sh +++ b/bundle.sh @@ -13,6 +13,10 @@ version="$(node -e "console.log(require('./lerna.json').version)")" commit="${CODEBUILD_RESOLVED_SOURCE_VERSION:-"$(git rev-parse --verify HEAD)"}" cd pack + +# .version is needed by buildable publishers +echo ${version} > .version + dist=${root}/dist output=${dist}/jsii-${version}+${commit:0:7}.zip rm -fr ${dist}