Comparing version 1.4.2 to 1.4.3
{ | ||
"name": "supabase", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Supabase CLI", | ||
@@ -5,0 +5,0 @@ "repository": "supabase/cli", |
@@ -7,3 +7,3 @@ # Supabase CLI (v1) | ||
This repository contains all the functionality for our CLI. | ||
This repository contains all the functionality for Supabase CLI. | ||
@@ -23,2 +23,16 @@ - [x] Running Supabase locally | ||
#### NodeJS | ||
Available via [NPM](https://www.npmjs.com). To install: | ||
```bash | ||
npm i supabase | ||
``` | ||
To run: | ||
```bash | ||
npx supabase -h | ||
``` | ||
#### macOS | ||
@@ -25,0 +39,0 @@ |
@@ -76,7 +76,2 @@ #!/usr/bin/env node | ||
// Binary name on Windows has .exe suffix | ||
if (process.platform === "win32") { | ||
binName += ".exe"; | ||
} | ||
return { binName, binPath, url, version }; | ||
@@ -97,6 +92,7 @@ } | ||
// First we will Un-GZip, then we will untar. So once untar is completed, | ||
// binary is downloaded into `downloadPath`. Verify the binary and call it good | ||
// First we will Un-GZip, then we will untar. | ||
const ungz = zlib.createGunzip(); | ||
const untar = tar.x({ cwd: opts.binPath }, [opts.binName]); | ||
// Binary name on Windows has .exe suffix | ||
const ext = process.platform === "win32" ? ".exe" : ""; | ||
const untar = tar.x({ cwd: opts.binPath }, [opts.binName + ext]); | ||
@@ -111,2 +107,8 @@ console.info("Downloading", opts.url); | ||
// Creates a hardlink for npm to find the binary on Windows | ||
if (ext) { | ||
const bin = path.join(opts.binPath, opts.binName); | ||
await fs.promises.link(bin + ext, bin); | ||
} | ||
// TODO: verify checksums | ||
@@ -113,0 +115,0 @@ console.info("Installed Supabase CLI successfully"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8026
95
143