Skip to content

Commit

Permalink
Merge pull request #736 from guardian/aa-cli-version
Browse files Browse the repository at this point in the history
feat: Add the GuCDK version to the CLI JSON response
  • Loading branch information
akash1810 authored Aug 13, 2021
2 parents 9ce9c68 + 45c6756 commit f207c2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/cli
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ if [[ $# -gt 0 ]] ; then
fi

# shellcheck disable=SC2086
npm run cli:dev $EXTRA_ARGS
npm run --silent cli:dev $EXTRA_ARGS
3 changes: 2 additions & 1 deletion src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ parseCommandLineArguments()
} else if (typeof commandResponse === "string") {
console.log(commandResponse);
} else {
console.log(JSON.stringify(commandResponse));
const responseWithVersionInfo = { "@guardian/cdk": { version: LibraryInfo.VERSION }, ...commandResponse };
console.log(JSON.stringify(responseWithVersionInfo));
}
})
.catch((err) => {
Expand Down

0 comments on commit f207c2f

Please sign in to comment.