From 3f1cdc3f604f8fb5de8af39b699cbda8ec8cc7ed Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Sun, 21 Jan 2024 03:12:05 +0800 Subject: [PATCH] chore: use top level flag --- .github/workflows/install.yml | 2 +- scripts/postinstall.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index b0763b733..bc5c9130b 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -79,7 +79,7 @@ jobs: - run: yarn config set nodeLinker node-modules - run: yarn init -y - run: yarn add -D ./supabase-1.28.0.tgz - - run: yarn exec supabase --version + - run: yarn run -T supabase --version pnpm: needs: pack diff --git a/scripts/postinstall.js b/scripts/postinstall.js index aee533d07..f131da3a8 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -102,7 +102,6 @@ async function main() { if (platform == "windows") { // Update bin path in package.json pkg.bin[pkg.name] += ".exe"; - await fs.promises.writeFile("package.json", JSON.stringify(pkg)); } const binPath = pkg.bin[pkg.name];