File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -84,4 +84,6 @@ You can clean common files using `npm run clean`
84
84
You can build node tasks using ` npm run build `
85
85
You can package your extension by running ` npm run package ` . Output will be placed in the ` .BuildOutput ` subdirectory at root.
86
86
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 ` .
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ exports.getSemanticVersion = () => {
16
16
throw new Error ( 'Package: invalid semver version: ' + version ) ;
17
17
}
18
18
19
- var patch = semver . patch ( version ) * 1000 ;
19
+ var patch = semver . patch ( version ) ;
20
20
21
21
if ( ! options . noversiontransform ) {
22
+ patch *= 1000 ;
22
23
var prerelease = semver . prerelease ( version ) ;
23
24
if ( prerelease ) { ;
24
25
patch += prerelease [ 1 ] ;
You can’t perform that action at this time.
0 commit comments