redeploy-cli 1.0.0 → 1.0.1
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 +15 -16
- package/package.json +11 -4
- package/scripts/postinstall.js +1 -1
- package/src/index.js +2 -2
package/README.md
CHANGED
|
@@ -5,17 +5,14 @@ Deploy to the edge from your terminal.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
#
|
|
9
|
-
npm install
|
|
10
|
-
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# yarn
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# bun
|
|
18
|
-
bun add github:revyid/redeploy --dev
|
|
8
|
+
# Global (recommended)
|
|
9
|
+
npm install -g redeploy-cli
|
|
10
|
+
|
|
11
|
+
# Or as a dev dependency
|
|
12
|
+
npm install redeploy-cli --save-dev
|
|
13
|
+
# pnpm add redeploy-cli -D
|
|
14
|
+
# yarn add redeploy-cli --dev
|
|
15
|
+
# bun add redeploy-cli --dev
|
|
19
16
|
```
|
|
20
17
|
|
|
21
18
|
On install, the CLI **auto-detects your package manager** and:
|
|
@@ -49,12 +46,14 @@ On install, the CLI **auto-detects your package manager** and:
|
|
|
49
46
|
## Quick Start
|
|
50
47
|
|
|
51
48
|
```bash
|
|
52
|
-
#
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
# Authenticate
|
|
50
|
+
redeploy login
|
|
51
|
+
|
|
52
|
+
# Deploy your project
|
|
53
|
+
redeploy deploy
|
|
55
54
|
|
|
56
|
-
# Or
|
|
57
|
-
|
|
55
|
+
# Or via package scripts
|
|
56
|
+
npm run deploy
|
|
58
57
|
```
|
|
59
58
|
|
|
60
59
|
## Commands
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redeploy-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "ReDeploy CLI — Deploy to the edge from your terminal",
|
|
5
5
|
"author": "ReDeploy",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"redeploy": "
|
|
8
|
+
"redeploy": "bin/redeploy.js"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/revyid/redeploy-cli.git"
|
|
13
13
|
},
|
|
14
|
+
"type": "commonjs",
|
|
14
15
|
"main": "./src/index.js",
|
|
15
16
|
"files": [
|
|
16
17
|
"bin/",
|
|
@@ -19,7 +20,13 @@
|
|
|
19
20
|
"LICENSE",
|
|
20
21
|
"README.md"
|
|
21
22
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
+
"scripts": {
|
|
24
|
+
"postinstall": "node scripts/postinstall.js"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://deploy.revy.my.id",
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/revyid/redeploy-cli/issues"
|
|
29
|
+
},
|
|
23
30
|
"dependencies": {
|
|
24
31
|
"chalk": "^5.4.1",
|
|
25
32
|
"commander": "^13.1.0",
|
|
@@ -36,4 +43,4 @@
|
|
|
36
43
|
"vercel",
|
|
37
44
|
"edge"
|
|
38
45
|
]
|
|
39
|
-
}
|
|
46
|
+
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Auto-generates package.json scripts AND .redeploy.json config.
|
|
6
6
|
* Detects package manager (npm, pnpm, yarn, bun) automatically.
|
|
7
7
|
*
|
|
8
|
-
* Install via: npm install
|
|
8
|
+
* Install via: npm install redeploy-cli --save-dev
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
"use strict";
|
package/src/index.js
CHANGED
|
@@ -31,7 +31,7 @@ async function checkForUpdate() {
|
|
|
31
31
|
const lastCheck = cfg._lastUpdateCheck || 0;
|
|
32
32
|
if (Date.now() - lastCheck < UPDATE_CHECK_INTERVAL) return;
|
|
33
33
|
|
|
34
|
-
const res = await fetch("https://
|
|
34
|
+
const res = await fetch("https://registry.npmjs.org/redeploy-cli/latest", {
|
|
35
35
|
signal: AbortSignal.timeout(3000),
|
|
36
36
|
});
|
|
37
37
|
if (!res.ok) return;
|
|
@@ -50,7 +50,7 @@ async function checkForUpdate() {
|
|
|
50
50
|
const chalk = (await import("chalk")).default;
|
|
51
51
|
console.log();
|
|
52
52
|
console.log(chalk.yellow(` ⚠ Update available: ${chalk.dim(VERSION)} → ${chalk.bold(remoteVersion)}`));
|
|
53
|
-
console.log(chalk.dim(" Run: npm install -g
|
|
53
|
+
console.log(chalk.dim(" Run: npm install -g redeploy-cli"));
|
|
54
54
|
console.log();
|
|
55
55
|
}
|
|
56
56
|
} catch {
|