Skip to content

Commit

Permalink
chore: test copy link
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Jan 21, 2024
1 parent 2add64a commit a705a23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,15 @@ async function main() {
});

// Link the binaries in postinstall to support yarn
console.error(path.resolve("."));
await binLinks({
path: path.resolve("."),
pkg: { ...pkg, bin: { [pkg.name]: binPath } },
});
if (platform === "windows") {
const srcPath = path.join("node_modules", ".bin", "supabase");
const dstPath = path.join("node_modules", "supabase", "bin");
await fs.promises.cp(srcPath, dstPath);
}

console.info("Installed Supabase CLI successfully");
}
Expand Down

0 comments on commit a705a23

Please sign in to comment.