Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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
  • Loading branch information
zkochan committed Feb 9, 2022
commit 268b4179dece5a39241ba1036aa27e43bcc3aee7
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/install-pnpm/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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) => {
Expand Down