Skip to content

Commit 18ab27d

Browse files
[Ignore] Marketplace doesn't support SemVer, npm ONLY supports SemVer (#1718)
* Marketplace doesn't support SemVer, npm ONLY supports SemVer * update doc * save new version to PackageJson
1 parent 6538a94 commit 18ab27d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/development.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ code --extensionDevelopmentPath="c:\path\to\vscode-powershell" .
4949

5050
To build a preview version of the extension, that is to say,
5151
a version of the extension named "PowerShell Preview",
52-
You can simply change the version in the package.json to include `-preview` at the end.
52+
You can simply change the `name` in the package.json to include `-Preview` at the end.
5353
When you build, this will:
5454

5555
- Add a warning to the top of the README.md to warn users not to have the stable and preview version enabled at the same time

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "PowerShell-Preview",
33
"displayName": "PowerShell Preview",
4-
"version": "2.0.0-preview.1",
4+
"version": "2.0.0",
55
"preview": true,
66
"publisher": "ms-vscode",
77
"description": "(Preview) Develop PowerShell scripts in Visual Studio Code!",

vscode-powershell.build.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ task GetExtensionData -Before Package {
3232

3333
if ($updateVersion) {
3434
exec { & npm version $script:ExtensionVersion --no-git-tag-version --allow-same-version }
35+
$script:PackageJson.version = $script:ExtensionVersion
3536
}
3637

3738
$script:ExtensionName = $script:PackageJson.name
@@ -111,7 +112,7 @@ task Test Build, {
111112
}
112113
}
113114

114-
task CheckPreview -If { $script:ExtensionVersion -like "*preview*" } `
115+
task CheckPreview -If { $script:ExtensionName -like "*Preview*" } `
115116
UpdateReadme, UpdatePackageJson
116117

117118
task UpdateReadme {

0 commit comments

Comments
 (0)