Skip to content

Commit 7cea0da

Browse files
committed
Update publish script to output to 'out/'
1 parent 17adf39 commit 7cea0da

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"compile": "esbuild ./src/extension.ts --outdir=dist --sourcemap --bundle --external:vscode --platform=node",
121121
"watch": "npm run compile -- --watch",
122122
"lint": "eslint src test --ext .ts",
123-
"package": "vsce package --no-gitHubIssueLinking",
123+
"package": "vsce package --out out/ --no-gitHubIssueLinking",
124124
"publish": "vsce publish",
125125
"compile-test": "npm run compile && tsc --incremental",
126126
"watch-tests": "npm run compile-test -- --watch",

vscode-powershell.build.ps1

+6-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ task Restore RestoreEditorServices, RestoreNodeModules
7676

7777
task Clean {
7878
Write-Host "`n### Cleaning vscode-powershell`n" -ForegroundColor Green
79-
Remove-BuildItem *.js, *.js.map, *.vsix, ./dist, ./modules, ./node_modules
79+
Remove-BuildItem *.js, *.js.map, ./dist, ./modules, ./node_modules, ./out
8080
}
8181

8282
task CleanEditorServices -If (Get-EditorServicesPath) {
@@ -124,10 +124,13 @@ task TestEditorServices -If (Get-EditorServicesPath) {
124124
#endregion
125125
#region Package tasks
126126

127-
task Package Build, {
127+
task Package {
128128
[semver]$version = $((Get-Content -Raw -Path package.json | ConvertFrom-Json).version)
129129
Write-Host "`n### Packaging powershell-$version.vsix`n" -ForegroundColor Green
130-
Remove-BuildItem ./*.vsix
130+
Remove-BuildItem ./out
131+
New-Item -ItemType Directory -Force out
132+
133+
Assert-Build (Test-Path ./dist/extension.js) "Extension must be built!"
131134

132135
# Packaging requires a copy of the modules folder, not a symbolic link. But
133136
# we might have built in Debug configuration, not Release, and still want to

0 commit comments

Comments
 (0)