From 2add64a3b30ce67a40b547e7e4b11136079f4f5f Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Sun, 21 Jan 2024 12:17:24 +0800 Subject: [PATCH] chore: test more --- .github/workflows/install.yml | 4 ++-- scripts/postinstall.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index edbe9b4ab..6690ef4df 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -79,8 +79,8 @@ jobs: - run: yarn config set nodeLinker node-modules - run: yarn init -y - run: yarn add -D ./supabase-1.28.0.tgz - # - run: yarn run -T supabase --version - - run: ./node_modules/.bin/supabase --version + - run: yarn run -T supabase --version + # - run: ./node_modules/.bin/supabase --version pnpm: needs: pack diff --git a/scripts/postinstall.js b/scripts/postinstall.js index f131da3a8..b660ae3d4 100755 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -99,7 +99,7 @@ async function main() { } const pkg = await readPackageJson(); - if (platform == "windows") { + if (platform === "windows") { // Update bin path in package.json pkg.bin[pkg.name] += ".exe"; } @@ -159,6 +159,7 @@ 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 } },