From c042c78cc19615d0cbc229d04d6fd79c1dc7bcf2 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Sat, 20 Jan 2024 16:52:58 +0800 Subject: [PATCH] fix: update bin link path for yarn berry --- scripts/postinstall.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 8c010f71b..3550673aa 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -169,8 +169,9 @@ async function main() { }); // Link the binaries in postinstall to support yarn + console.error(process.env.INIT_CWD) await binLinks({ - path: path.resolve("."), + path: path.join(process.env.INIT_CWD, "node_modules", "supabase"), pkg: { ...pkg, bin: { [pkg.name]: binPath } }, });