Skip to content

Commit

Permalink
fix: update bin link path for yarn berry
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Jan 20, 2024
1 parent eb65dd4 commit c042c78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
});

Expand Down

0 comments on commit c042c78

Please sign in to comment.