From b16b554db736cf6e42e097d85e2f26971369797c 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 8c010f71b..d4b650811 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -170,7 +170,7 @@ async function main() { // Link the binaries in postinstall to support yarn await binLinks({ - path: path.resolve("."), + path: path.join(process.env.INIT_CWD, "node_modules", "supabase"), pkg: { ...pkg, bin: { [pkg.name]: binPath } }, });