ripencli 0.1.0 → 0.1.2
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 +18 -12
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
# ripen
|
|
2
2
|
|
|
3
|
-
> Interactive dependency updater for pnpm and
|
|
3
|
+
> Interactive dependency updater for npm, pnpm, and yarn
|
|
4
4
|
|
|
5
|
-
 
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- **Interactive TUI** — navigate packages with arrow keys, select with space
|
|
10
10
|
- **Version picker** — choose any specific version from the npm registry, not just latest
|
|
11
11
|
- **Changelog viewer** — see GitHub release notes before you update
|
|
12
|
-
- **pnpm &
|
|
13
|
-
- **Global packages** — check and update global installs
|
|
12
|
+
- **npm, pnpm & yarn** — auto-detects your package manager
|
|
13
|
+
- **Global packages** — check and update global installs across all package managers
|
|
14
|
+
- **Self-update** — notifies you when a new version of ripen is available
|
|
14
15
|
- **Major bump warnings** — highlights potentially breaking updates
|
|
15
16
|
|
|
16
17
|
## Install
|
|
17
18
|
|
|
18
19
|
```bash
|
|
19
|
-
|
|
20
|
+
npm install -g ripencli
|
|
20
21
|
# or
|
|
21
|
-
|
|
22
|
+
pnpm add -g ripencli
|
|
23
|
+
# or
|
|
24
|
+
yarn global add ripencli
|
|
22
25
|
```
|
|
23
26
|
|
|
24
27
|
## Usage
|
|
@@ -27,7 +30,7 @@ npm install -g ripen
|
|
|
27
30
|
# Check current project
|
|
28
31
|
ripen
|
|
29
32
|
|
|
30
|
-
# Check global packages
|
|
33
|
+
# Check global packages (scans npm, pnpm, and yarn)
|
|
31
34
|
ripen -g
|
|
32
35
|
|
|
33
36
|
# Help
|
|
@@ -47,11 +50,14 @@ ripen --help
|
|
|
47
50
|
|
|
48
51
|
## How it works
|
|
49
52
|
|
|
50
|
-
1.
|
|
51
|
-
2.
|
|
52
|
-
3.
|
|
53
|
-
4. Press `
|
|
54
|
-
5.
|
|
53
|
+
1. Detects your package manager from the lock file (`pnpm-lock.yaml`, `package-lock.json`, or `yarn.lock`)
|
|
54
|
+
2. Runs the appropriate `outdated --json` command to find outdated packages
|
|
55
|
+
3. Shows them in a colorful interactive list
|
|
56
|
+
4. Press `v` on any package to pick a specific version from the npm registry
|
|
57
|
+
5. Press `c` to see GitHub release notes between your current and target version
|
|
58
|
+
6. Select the ones you want and press enter — ripen runs the update commands for you
|
|
59
|
+
|
|
60
|
+
When using `ripen -g`, all available package managers are checked in parallel so you see every global package in one place.
|
|
55
61
|
|
|
56
62
|
## License
|
|
57
63
|
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { Box, Text, render, useApp, useInput, useStdout } from "ink";
|
|
4
|
+
import { createRequire } from "module";
|
|
4
5
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
5
6
|
import { join } from "path";
|
|
6
7
|
import { execa } from "execa";
|
|
@@ -2045,7 +2046,7 @@ function App({ project, global, version }) {
|
|
|
2045
2046
|
}
|
|
2046
2047
|
//#endregion
|
|
2047
2048
|
//#region src/cli.tsx
|
|
2048
|
-
const VERSION =
|
|
2049
|
+
const { version: VERSION } = createRequire(import.meta.url)("../package.json");
|
|
2049
2050
|
const args = process.argv.slice(2);
|
|
2050
2051
|
const isGlobal = args.includes("--global") || args.includes("-g");
|
|
2051
2052
|
const showHelp = args.includes("--help") || args.includes("-h");
|