Skip to content

Commit d3908ea

Browse files
authored
Merge back
Merge back
2 parents 5b39c11 + 895dd98 commit d3908ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ You can clean common files using `npm run clean`
8484
You can build node tasks using `npm run build`
8585
You can package your extension by running `npm run package`. Output will be placed in the `.BuildOutput` subdirectory at root.
8686

87-
87+
### Versioning
88+
You can set version by packaging with `npm run package -- --version <version>`.
89+
You can disable the default behavior which would encode the semver metadata into the patch component with the additional flag `--noversiontransform`.

extension-version.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ exports.getSemanticVersion = () => {
1616
throw new Error('Package: invalid semver version: ' + version);
1717
}
1818

19-
var patch = semver.patch(version) * 1000;
19+
var patch = semver.patch(version);
2020

2121
if (!options.noversiontransform){
22+
patch *= 1000;
2223
var prerelease = semver.prerelease(version);
2324
if (prerelease) {;
2425
patch += prerelease[1];

0 commit comments

Comments
 (0)