Skip to content

Commit 02d7318

Browse files
committed
Replace corepack with npx --yes pnpm in install scripts
1 parent 1068dc3 commit 02d7318

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎install.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ $null = Invoke-Step "Cloning repository..." {
107107
Set-Location $extractedDir
108108

109109
$null = Invoke-Step "Installing dependencies..." {
110-
corepack.cmd pnpm install *>$null
110+
npx --yes pnpm install *>$null
111111
} "Failed to install dependencies."
112112

113113
Set-Location apps/editor
114114

115115
$null = Invoke-Step "Building extension..." {
116-
corepack.cmd pnpm run build *>$null
116+
npx --yes pnpm run build *>$null
117117
} "Build failed."
118118

119119
$vsixFile = Get-ChildItem *.vsix -ErrorAction SilentlyContinue | Select-Object -First 1

‎install.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ run_step "Cloning repository" git clone -b main -c core.longpaths=true --quiet h
149149

150150
cd "$TMP_DIR/source"
151151

152-
run_step "Installing dependencies" corepack pnpm install
152+
run_step "Installing dependencies" npx --yes pnpm install
153153

154154
cd apps/editor
155-
run_step "Building extension" corepack pnpm run build
155+
run_step "Building extension" npx --yes pnpm run build
156156

157157
vsix_files=(*.vsix)
158158
VSIX_FILE="${vsix_files[0]}"

0 commit comments

Comments
 (0)