Install the self-contained binary version of pnpm

This is a breaking change because the binary version of pnpm
is only available from v6.17.1

close #18
This commit is contained in:
Zoltan Kochan 2022-02-10 01:09:45 +02:00
parent 2270f39ef6
commit 268b4179de
No known key found for this signature in database
GPG Key ID: 649E4D4AF74E7DEC
2 changed files with 2 additions and 2 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -8,7 +8,7 @@ import { Inputs } from '../inputs'
export async function runSelfInstaller(inputs: Inputs): Promise<number> {
const { version, dest } = inputs
const target = version ? `pnpm@${version}` : 'pnpm'
const target = version ? `@pnpm/exe@${version}` : '@pnpm/exe'
const pkgJson = path.join(dest, 'package.json')
await remove(dest)
@ -20,7 +20,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise<number> {
stdio: ['pipe', 'inherit', 'inherit'],
})
const response = await fetch('https://pnpm.io/pnpm.js')
const response = await fetch('https://get.pnpm.io/v6.16.js')
response.body.pipe(cp.stdin)
const exitCode = await new Promise<number>((resolve, reject) => {