@rivetkit/cli 2.3.31 → 3.0.0-preview.6
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 +0 -3
- package/index.js +6 -16
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
Rivet Cloud CLI distributed over npm.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
npx @rivetkit/cli dev
|
|
7
|
-
npx @rivetkit/cli dev --provider cloudflare
|
|
8
|
-
npx @rivetkit/cli dev --provider supabase -- --env-file .env.local
|
|
9
6
|
npx @rivetkit/cli deploy --token cloud_api_xxxxx
|
|
10
7
|
npx @rivetkit/cli setup-ci
|
|
11
8
|
```
|
package/index.js
CHANGED
|
@@ -14,9 +14,6 @@ function getPlatformPackageName() {
|
|
|
14
14
|
if (arch === "x64") return "@rivetkit/cli-darwin-x64";
|
|
15
15
|
if (arch === "arm64") return "@rivetkit/cli-darwin-arm64";
|
|
16
16
|
break;
|
|
17
|
-
case "win32":
|
|
18
|
-
if (arch === "x64") return "@rivetkit/cli-win32-x64";
|
|
19
|
-
break;
|
|
20
17
|
}
|
|
21
18
|
return null;
|
|
22
19
|
}
|
|
@@ -38,6 +35,12 @@ function getCliPath() {
|
|
|
38
35
|
|
|
39
36
|
const platformPkg = getPlatformPackageName();
|
|
40
37
|
if (!platformPkg) {
|
|
38
|
+
if (process.platform === "win32" && process.arch === "x64") {
|
|
39
|
+
throw new Error(
|
|
40
|
+
"@rivetkit/cli: Windows x64 is not yet supported via npm platform packages.\n" +
|
|
41
|
+
"Set RIVET_CLI_BINARY to a local rivet.exe binary.",
|
|
42
|
+
);
|
|
43
|
+
}
|
|
41
44
|
throw new Error(
|
|
42
45
|
`@rivetkit/cli: unsupported platform ${process.platform}/${process.arch}`,
|
|
43
46
|
);
|
|
@@ -47,19 +50,6 @@ function getCliPath() {
|
|
|
47
50
|
try {
|
|
48
51
|
pkgJsonPath = require.resolve(`${platformPkg}/package.json`);
|
|
49
52
|
} catch {
|
|
50
|
-
if (process.platform === "win32" && process.arch === "x64") {
|
|
51
|
-
const version = require("./package.json").version;
|
|
52
|
-
if (
|
|
53
|
-
typeof version === "string" &&
|
|
54
|
-
version.startsWith("0.0.0-")
|
|
55
|
-
) {
|
|
56
|
-
throw new Error(
|
|
57
|
-
"@rivetkit/cli: Windows x64 binaries are only published for release versions.\n" +
|
|
58
|
-
`The current package version (${version}) is a preview build, so @rivetkit/cli-win32-x64 was intentionally not published.\n` +
|
|
59
|
-
"Use a release build or set RIVET_CLI_BINARY to a local rivet.exe binary.",
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
53
|
throw new Error(
|
|
64
54
|
`@rivetkit/cli: platform package ${platformPkg} is not installed.\n` +
|
|
65
55
|
"Optional dependencies may have been skipped. Try npm install --include=optional @rivetkit/cli.",
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-preview.6",
|
|
4
4
|
"description": "Rivet Cloud CLI",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
8
|
"bin": {
|
|
@@ -23,10 +23,9 @@
|
|
|
23
23
|
"directory": "rivetkit-typescript/packages/cli"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@rivetkit/cli-darwin-arm64": "
|
|
27
|
-
"@rivetkit/cli-darwin-x64": "
|
|
28
|
-
"@rivetkit/cli-linux-arm64-musl": "
|
|
29
|
-
"@rivetkit/cli-linux-x64-musl": "
|
|
30
|
-
"@rivetkit/cli-win32-x64": "2.3.31"
|
|
26
|
+
"@rivetkit/cli-darwin-arm64": "3.0.0-preview.6",
|
|
27
|
+
"@rivetkit/cli-darwin-x64": "3.0.0-preview.6",
|
|
28
|
+
"@rivetkit/cli-linux-arm64-musl": "3.0.0-preview.6",
|
|
29
|
+
"@rivetkit/cli-linux-x64-musl": "3.0.0-preview.6"
|
|
31
30
|
}
|
|
32
31
|
}
|