Skip to content

Commit aa86b50

Browse files
committed
Use npx.cmd for pnpm commands and enable long paths in git clone
├── README.md ├── install.ps1 └── install.sh
1 parent 159c365 commit aa86b50

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎install.ps1‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ if ($choice -eq 'q' -or $choice -eq 'Q') {
7171
$tmpDir = Join-Path $env:TEMP ("CWC_Install_" + [Guid]::NewGuid().ToString().Substring(0,8))
7272
New-Item -ItemType Directory -Path $tmpDir | Out-Null
7373
Write-Host "`nCloning repository into temporary directory..."
74-
git clone -q --depth 1 https://github.com/robertpiosik/CodeWebChat.git $tmpDir
74+
git clone -c core.longpaths=true -q --depth 1 https://github.com/robertpiosik/CodeWebChat.git $tmpDir
7575

7676
Push-Location $tmpDir
7777

7878
Write-Host "Installing dependencies..."
79-
npx --yes pnpm install *>$null
79+
npx.cmd --yes pnpm install *>$null
8080

8181
Write-Host "Building extension..."
8282
Set-Location apps/editor
83-
npx --yes pnpm run build *>$null
83+
npx.cmd --yes pnpm run build *>$null
8484

8585
$vsixFile = Get-ChildItem *.vsix | Select-Object -First 1
8686

0 commit comments

Comments
 (0)