diff --git a/scripts/postinstall.js b/scripts/postinstall.js index b660ae3d4..e37f26b4b 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -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"); }