From 0045f376edfc3e7ab2f9a1406709a236a08e059a Mon Sep 17 00:00:00 2001 From: Evandro Date: Thu, 28 Nov 2024 13:20:07 -0300 Subject: [PATCH] fix: --- nixpacks.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index 7ba07cb..8c004d0 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -3,8 +3,9 @@ nixPkgs = ['nodejs_18', 'openssl'] cmds = [ 'npm install -g pnpm@latest', 'mkdir -p /usr/bin', - 'which pnpm > /tmp/pnpm_path', - 'cp $(which pnpm) /usr/bin/pnpm' + 'npm config get prefix > /tmp/npm_prefix', + 'cp $(cat /tmp/npm_prefix)/bin/pnpm /usr/bin/pnpm', + 'chmod +x /usr/bin/pnpm' ] [phases.install]