Skip to content

Commit cf2c78c

Browse files
committed
Move package command back to package.json
1 parent d0bcbf5 commit cf2c78c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"lint": "eslint src",
115115
"test": "pwsh -NoLogo -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Task Test",
116116
"vscode:test": "vscode-test",
117-
"package": "pwsh -NoLogo -NoProfile -ExecutionPolicy Bypass -File ./build.ps1 -Task Package"
117+
"package": "vsce package --allow-missing-repository --out ./out/"
118118
},
119119
"devDependencies": {
120120
"@types/mocha": "^10.0.10",

psake.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Task Pester -Description "Run Pester tests" {
8888

8989
Task Package -Depends Clean, Compile, Test -Description "Package the extension" {
9090
Write-Host '📦 Packaging extension...'
91-
Write-Output 'y' | vsce package --allow-missing-repository --out $script:outDir
91+
yarn package
9292
$vsixFiles = Get-ChildItem -Path $script:outDir -Filter $script:vsixPattern | Sort-Object LastWriteTime -Descending
9393
if (-not $vsixFiles) {
9494
throw '❌ No .vsix file was generated'

0 commit comments

Comments
 (0)