Skip to content

Commit

Permalink
Add pnpm hcl (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-lew authored Jan 17, 2024
1 parent a2ba64a commit a096e9a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pnpm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
description = "pnpm is a package manager for JavaScript and Node.js projects. It is an alternative package manager to the widely used npm (Node Package Manager) and Yarn."
test = "pnpm --version"
binaries = ["pnpm"]

version "8.14.1" {
platform "linux" "amd64" {
source = "https://github.com/pnpm/pnpm/releases/download/v${version}/pnpm-${os}-x64"
on unpack {
rename { from = "${root}/pnpm-${os}-x64" to = "${root}/pnpm" }
}
}

platform "linux" "arm64" {
source = "https://github.com/pnpm/pnpm/releases/download/v${version}/pnpm-${os}-${arch}"
on unpack {
rename { from = "${root}/pnpm-${os}-arm64" to = "${root}/pnpm" }
}
}

platform "darwin" "amd64" {
source = "https://github.com/pnpm/pnpm/releases/download/v${version}/pnpm-macos-x64"
on unpack {
rename { from = "${root}/pnpm-macos-x64" to = "${root}/pnpm" }
}
}

platform "darwin" "arm64" {
source = "https://github.com/pnpm/pnpm/releases/download/v${version}/pnpm-macos-${arch}"
on unpack {
rename { from = "${root}/pnpm-macos-${arch}" to = "${root}/pnpm" }
}
}
}

0 comments on commit a096e9a

Please sign in to comment.