pcu 0.6.4 → 0.6.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 +130 -0
- package/dist/index.js +0 -0
- package/package.json +45 -44
- package/LICENSE +0 -21
package/README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# pcu
|
|
2
|
+
|
|
3
|
+
A powerful CLI tool for managing pnpm workspace catalog dependencies with ease.
|
|
4
|
+
|
|
5
|
+
## 🚀 Quick Start
|
|
6
|
+
|
|
7
|
+
### Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Install globally
|
|
11
|
+
npm install -g pcu
|
|
12
|
+
|
|
13
|
+
# Or use with pnpm
|
|
14
|
+
pnpm add -g pcu
|
|
15
|
+
|
|
16
|
+
# Or use legacy package name
|
|
17
|
+
npm install -g pnpm-catalog-updates
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Check for outdated catalog dependencies
|
|
24
|
+
pcu check
|
|
25
|
+
# or
|
|
26
|
+
pcu -c
|
|
27
|
+
|
|
28
|
+
# Update catalog dependencies interactively
|
|
29
|
+
pcu update --interactive
|
|
30
|
+
# or
|
|
31
|
+
pcu -i
|
|
32
|
+
|
|
33
|
+
# Update to latest versions
|
|
34
|
+
pcu update
|
|
35
|
+
# or
|
|
36
|
+
pcu -u
|
|
37
|
+
|
|
38
|
+
# Analyze impact of updates
|
|
39
|
+
pcu analyze
|
|
40
|
+
# or
|
|
41
|
+
pcu -a
|
|
42
|
+
|
|
43
|
+
# Show workspace information
|
|
44
|
+
pcu workspace
|
|
45
|
+
# or
|
|
46
|
+
pcu -s
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 📋 Commands
|
|
50
|
+
|
|
51
|
+
| Command | Shorthand | Description |
|
|
52
|
+
| --------------- | --------- | ----------------------------------------------- |
|
|
53
|
+
| `pcu check` | `pcu -c` | Check for outdated catalog dependencies |
|
|
54
|
+
| `pcu update` | `pcu -u` | Update catalog dependencies |
|
|
55
|
+
| `pcu analyze` | `pcu -a` | Analyze impact of dependency updates |
|
|
56
|
+
| `pcu workspace` | `pcu -s` | Show workspace information and validation |
|
|
57
|
+
| `pcu init` | | Initialize workspace with catalog configuration |
|
|
58
|
+
| `pcu help` | `pcu -h` | Display help information |
|
|
59
|
+
|
|
60
|
+
## 🎯 Common Examples
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Interactive update with backup
|
|
64
|
+
pcu update --interactive --backup
|
|
65
|
+
|
|
66
|
+
# Update only minor versions
|
|
67
|
+
pcu update --target minor
|
|
68
|
+
|
|
69
|
+
# Check specific catalog
|
|
70
|
+
pcu check --catalog node18
|
|
71
|
+
|
|
72
|
+
# Analyze before updating
|
|
73
|
+
pcu analyze default react
|
|
74
|
+
|
|
75
|
+
# Validate workspace
|
|
76
|
+
pcu workspace --validate
|
|
77
|
+
|
|
78
|
+
# Dry run update
|
|
79
|
+
pcu update --dry-run
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## ⚙️ Options
|
|
83
|
+
|
|
84
|
+
### Global Options
|
|
85
|
+
|
|
86
|
+
- `--help, -h`: Show help
|
|
87
|
+
- `--version, -v`: Show version
|
|
88
|
+
- `--verbose`: Enable verbose logging
|
|
89
|
+
- `--quiet`: Suppress non-error output
|
|
90
|
+
|
|
91
|
+
### Update Options
|
|
92
|
+
|
|
93
|
+
- `--interactive, -i`: Interactive mode
|
|
94
|
+
- `--dry-run, -d`: Show what would be updated without making changes
|
|
95
|
+
- `--backup, -b`: Create backup before updating
|
|
96
|
+
- `--target <level>`: Update target (patch|minor|major|latest)
|
|
97
|
+
- `--catalog <name>`: Target specific catalog
|
|
98
|
+
|
|
99
|
+
## 📁 Configuration
|
|
100
|
+
|
|
101
|
+
Create a `.pcurc.json` file in your project root:
|
|
102
|
+
|
|
103
|
+
```json
|
|
104
|
+
{
|
|
105
|
+
"catalogs": ["default", "node18", "dev"],
|
|
106
|
+
"updateTarget": "minor",
|
|
107
|
+
"backup": true,
|
|
108
|
+
"interactive": false
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## 🔧 Requirements
|
|
113
|
+
|
|
114
|
+
- Node.js >= 22.0.0
|
|
115
|
+
- pnpm workspace with catalog configuration
|
|
116
|
+
- pnpm-workspace.yaml with catalog entries
|
|
117
|
+
|
|
118
|
+
## 📚 Documentation
|
|
119
|
+
|
|
120
|
+
For complete documentation, visit:
|
|
121
|
+
[pnpm-catalog-updates](https://github.com/houko/pnpm-catalog-updates#readme)
|
|
122
|
+
|
|
123
|
+
## 🤝 Contributing
|
|
124
|
+
|
|
125
|
+
Found a bug or want to contribute? Visit our
|
|
126
|
+
[GitHub repository](https://github.com/houko/pnpm-catalog-updates).
|
|
127
|
+
|
|
128
|
+
## 📄 License
|
|
129
|
+
|
|
130
|
+
MIT © [Evan Hu](https://github.com/houko)
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pcu",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "CLI application for pnpm-catalog-updates",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,37 +13,54 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
15
|
"bin",
|
|
16
|
-
"src"
|
|
16
|
+
"src",
|
|
17
|
+
"README.md"
|
|
17
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsup && pnpm run build:bin",
|
|
21
|
+
"build:bin": "node ../../scripts/build-bin.js",
|
|
22
|
+
"build:watch": "tsup --watch",
|
|
23
|
+
"dev": "tsx src/index.ts",
|
|
24
|
+
"start": "node dist/index.js",
|
|
25
|
+
"test": "vitest --run --passWithNoTests",
|
|
26
|
+
"test:watch": "vitest --watch",
|
|
27
|
+
"test:coverage": "vitest --run --coverage --passWithNoTests",
|
|
28
|
+
"lint": "eslint src --ext .ts",
|
|
29
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
30
|
+
"format": "prettier --write src",
|
|
31
|
+
"format:check": "prettier --check src",
|
|
32
|
+
"typecheck": "tsc --noEmit",
|
|
33
|
+
"clean": "rimraf dist bin/*.js"
|
|
34
|
+
},
|
|
18
35
|
"dependencies": {
|
|
19
|
-
"chalk": "
|
|
20
|
-
"cli-table3": "
|
|
21
|
-
"commander": "
|
|
22
|
-
"fs-extra": "
|
|
23
|
-
"glob": "
|
|
24
|
-
"inquirer": "
|
|
25
|
-
"lodash": "
|
|
26
|
-
"npm-registry-fetch": "
|
|
27
|
-
"ora": "
|
|
28
|
-
"pacote": "
|
|
29
|
-
"rxjs": "
|
|
30
|
-
"semver": "
|
|
31
|
-
"yaml": "
|
|
36
|
+
"chalk": "catalog:",
|
|
37
|
+
"cli-table3": "catalog:",
|
|
38
|
+
"commander": "catalog:",
|
|
39
|
+
"fs-extra": "catalog:",
|
|
40
|
+
"glob": "catalog:",
|
|
41
|
+
"inquirer": "catalog:",
|
|
42
|
+
"lodash": "catalog:",
|
|
43
|
+
"npm-registry-fetch": "catalog:",
|
|
44
|
+
"ora": "catalog:",
|
|
45
|
+
"pacote": "catalog:",
|
|
46
|
+
"rxjs": "catalog:",
|
|
47
|
+
"semver": "catalog:",
|
|
48
|
+
"yaml": "catalog:"
|
|
32
49
|
},
|
|
33
50
|
"devDependencies": {
|
|
34
|
-
"@types/inquirer": "
|
|
35
|
-
"@types/node": "
|
|
36
|
-
"@vitest/coverage-v8": "
|
|
37
|
-
"@vitest/ui": "
|
|
38
|
-
"eslint": "
|
|
39
|
-
"fs-extra": "
|
|
40
|
-
"msw": "
|
|
41
|
-
"prettier": "
|
|
42
|
-
"rimraf": "
|
|
43
|
-
"tsup": "
|
|
44
|
-
"tsx": "
|
|
45
|
-
"typescript": "
|
|
46
|
-
"vitest": "
|
|
51
|
+
"@types/inquirer": "catalog:",
|
|
52
|
+
"@types/node": "catalog:node20",
|
|
53
|
+
"@vitest/coverage-v8": "catalog:",
|
|
54
|
+
"@vitest/ui": "catalog:",
|
|
55
|
+
"eslint": "catalog:",
|
|
56
|
+
"fs-extra": "catalog:",
|
|
57
|
+
"msw": "catalog:",
|
|
58
|
+
"prettier": "catalog:",
|
|
59
|
+
"rimraf": "catalog:",
|
|
60
|
+
"tsup": "catalog:",
|
|
61
|
+
"tsx": "catalog:",
|
|
62
|
+
"typescript": "catalog:",
|
|
63
|
+
"vitest": "catalog:"
|
|
47
64
|
},
|
|
48
65
|
"keywords": [
|
|
49
66
|
"pnpm",
|
|
@@ -59,21 +76,5 @@
|
|
|
59
76
|
"type": "git",
|
|
60
77
|
"url": "https://github.com/houko/pnpm-catalog-updates.git",
|
|
61
78
|
"directory": "apps/cli"
|
|
62
|
-
},
|
|
63
|
-
"scripts": {
|
|
64
|
-
"build": "tsup && pnpm run build:bin",
|
|
65
|
-
"build:bin": "node ../../scripts/build-bin.js",
|
|
66
|
-
"build:watch": "tsup --watch",
|
|
67
|
-
"dev": "tsx src/index.ts",
|
|
68
|
-
"start": "node dist/index.js",
|
|
69
|
-
"test": "vitest --run --passWithNoTests",
|
|
70
|
-
"test:watch": "vitest --watch",
|
|
71
|
-
"test:coverage": "vitest --run --coverage --passWithNoTests",
|
|
72
|
-
"lint": "eslint src --ext .ts",
|
|
73
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
74
|
-
"format": "prettier --write src",
|
|
75
|
-
"format:check": "prettier --check src",
|
|
76
|
-
"typecheck": "tsc --noEmit",
|
|
77
|
-
"clean": "rimraf dist bin/*.js"
|
|
78
79
|
}
|
|
79
80
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 pnpm-catalog-updates
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|