Skip to content

feat(jsii): Tag the jsii compiler version in the .jsii assemblies#420

Merged
RomainMuller merged 1 commit intomasterfrom
rmuller/tag-jsii-version
Apr 2, 2019
Merged

feat(jsii): Tag the jsii compiler version in the .jsii assemblies#420
RomainMuller merged 1 commit intomasterfrom
rmuller/tag-jsii-version

Conversation

@RomainMuller
Copy link
Copy Markdown
Contributor

By default, the fully qualified version number (including the commit SHA
prefix) is written in the new jsiiVersion field of the assembly,
however in order to make this friendlier to tests, there is an option to
turn over to a short format by setting the new jsii.versionFormat
key in package.json to 'short'.

Also, slightly altered the generation of the fully qualified version
name to distinguish between cases where the commit SHA was provided by
the CodeBuild environment variable, versus parsed using git rev-parse,
denoting the later is indicative of an "unreleased" version.

Fixes #412

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

By default, the fully qualified version number (including the commit SHA
prefix) is written in the new `jsiiVersion` field of the assembly,
however in order to make this friendlier to tests, there is an option to
turn over to a *short* format by setting the new `jsii.versionFormat`
key in `package.json` to `'short'`.

Also, slightly altered the generation of the fully qualified version
name to distinguish between cases where the commit SHA was provided by
the CodeBuild environment variable, versus parsed using `git rev-parse`,
denoting the later is indicative of an "unreleased" version.

Fixes #412
@RomainMuller RomainMuller requested a review from a team as a code owner April 2, 2019 09:29
@RomainMuller RomainMuller self-assigned this Apr 2, 2019
@RomainMuller RomainMuller merged commit 42dece1 into master Apr 2, 2019
@RomainMuller RomainMuller deleted the rmuller/tag-jsii-version branch April 2, 2019 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embed the version of the JSII that was used to generate an artifact, in the artifact

2 participants