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 0512569
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,20 @@ 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(
process.env.INIT_CWD,
"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 0512569

Please sign in to comment.