supabase 1.17.6 → 1.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This repository contains all the functionality for Supabase CLI.
21
21
 
22
22
  #### NodeJS
23
23
 
24
- Available via [NPM](https://www.npmjs.com). To install:
24
+ Available via [NPM](https://www.npmjs.com) as dev dependency. To install:
25
25
 
26
26
  ```bash
27
27
  npm i supabase --save-dev
@@ -49,7 +49,25 @@ brew upgrade supabase
49
49
 
50
50
  #### Windows
51
51
 
52
- Available via [Scoop](https://scoop.sh). To install:
52
+ Available via [Scoop](https://scoop.sh) and [Chocolatey](https://chocolatey.org).
53
+
54
+ ##### via Chocolatey
55
+
56
+ To install:
57
+
58
+ ```powershell
59
+ choco install supabase
60
+ ```
61
+
62
+ To upgrade:
63
+
64
+ ```powershell
65
+ choco upgrade supabase
66
+ ```
67
+
68
+ ##### via Scoop
69
+
70
+ To install:
53
71
 
54
72
  ```powershell
55
73
  scoop bucket add supabase https://github.com/supabase/scoop-bucket.git
@@ -82,7 +100,7 @@ brew upgrade supabase
82
100
 
83
101
  ##### via Linux packages
84
102
 
85
- Linux packages are provided in [Releases](https://github.com/supabase/cli/releases). To install, download the `.apk`/`.deb`/`.rpm` file depending on your package manager and run the respective commands.
103
+ Linux packages are provided in [Releases](https://github.com/supabase/cli/releases). To install, download the `.apk`/`.deb`/`.rpm`/`.pkg.tar.zst` file depending on your package manager and run the respective commands.
86
104
 
87
105
  ```sh
88
106
  sudo apk add --allow-untrusted <...>.apk
@@ -96,6 +114,10 @@ sudo dpkg -i <...>.deb
96
114
  sudo rpm -i <...>.rpm
97
115
  ```
98
116
 
117
+ ```sh
118
+ sudo pacman -U <...>.pkg.tar.zst
119
+ ```
120
+
99
121
  #### Other Platforms
100
122
 
101
123
  You can also install the CLI via [go modules](https://go.dev/ref/mod#go-install) without the help of package managers.
@@ -110,7 +132,7 @@ Add a symlink to the binary in `$PATH` for easier access:
110
132
  ln -s "$(go env GOPATH)/cli" /usr/bin/supabase
111
133
  ```
112
134
 
113
- This works on non-standard linux distros, like archlinux.
135
+ This works on other non-standard Linux distros.
114
136
 
115
137
  ### Run the CLI
116
138
 
@@ -140,4 +162,3 @@ go run . help
140
162
  ## Sponsors
141
163
 
142
164
  [![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)
143
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supabase",
3
- "version": "1.17.6",
3
+ "version": "1.17.7",
4
4
  "description": "Supabase CLI",
5
5
  "repository": "supabase/cli",
6
6
  "homepage": "https://supabase.com/docs/reference/cli",
@@ -76,15 +76,22 @@ async function parsePackageJson() {
76
76
  return { binName, binPath, url, version };
77
77
  }
78
78
 
79
+ const errGlobal = `Installing Supabase CLI as a global module is not supported.
80
+ Please use one of the supported package managers: https://github.com/supabase/cli#install-the-cli
81
+ `;
82
+
79
83
  /**
80
84
  * Reads the configuration from application's package.json,
81
85
  * validates properties, copied the binary from the package and stores at
82
- * ./bin in the package's root. NPM already has support to install binary files
83
- * specific locations when invoked with "npm install -g"
86
+ * ./bin in the package's root.
84
87
  *
85
88
  * See: https://docs.npmjs.com/files/package.json#bin
86
89
  */
87
90
  async function main() {
91
+ if (process.env.npm_config_global) {
92
+ throw errGlobal;
93
+ }
94
+
88
95
  const opts = await parsePackageJson();
89
96
  await fs.promises.mkdir(opts.binPath, { recursive: true });
90
97