From a096e9ae72c25a515e4d2750cccf831a64f25d88 Mon Sep 17 00:00:00 2001 From: phoebe-lew Date: Wed, 17 Jan 2024 13:56:12 +1100 Subject: [PATCH] Add pnpm hcl (#436) --- pnpm.hcl | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pnpm.hcl diff --git a/pnpm.hcl b/pnpm.hcl new file mode 100644 index 00000000..4a1e1075 --- /dev/null +++ b/pnpm.hcl @@ -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" } + } + } +}