monoverse 0.0.15 → 0.0.16

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.
Files changed (3) hide show
  1. package/README.md +116 -0
  2. package/dist/cli.js +800 -239
  3. package/package.json +15 -13
package/README.md ADDED
@@ -0,0 +1,116 @@
1
+ # Monoverse
2
+
3
+ A zero-config, opinionated monorepo management tool.
4
+
5
+ ## Getting Started
6
+
7
+ Monoverse works out of the box with any monorepo. No configuration needed.
8
+
9
+ ```bash
10
+ # Install
11
+ npm install -g monoverse
12
+
13
+ # Run from anywhere in your monorepo
14
+ monoverse ls
15
+ ```
16
+
17
+ Monoverse auto-detects your package manager (pnpm, yarn, npm, bun) and discovers all workspaces automatically.
18
+
19
+ ## Commands
20
+
21
+ ### ls
22
+
23
+ List all workspaces in a tree structure.
24
+
25
+ ```bash
26
+ monoverse ls
27
+ ```
28
+
29
+ ```
30
+ Workspaces (12)
31
+
32
+ my-monorepo
33
+ ├── apps
34
+ │ ├── web (web)
35
+ │ └── mobile (mobile)
36
+ └── packages
37
+ ├── ui (@acme/ui)
38
+ └── utils (@acme/utils) (cwd)
39
+ ```
40
+
41
+ ### add
42
+
43
+ Add a dependency to the current workspace.
44
+
45
+ ```bash
46
+ monoverse add lodash
47
+ monoverse add -t dev vitest
48
+ monoverse add -v 5.0.0 lodash
49
+ ```
50
+
51
+ | Option | Description |
52
+ |--------|-------------|
53
+ | `-t, --type` | `dependency` (default), `dev`, `peer`, `optional` |
54
+ | `-v, --version` | Specific version to install |
55
+
56
+ Syncs to existing versions in other workspaces when available.
57
+
58
+ ### remove
59
+
60
+ Remove a dependency from the current workspace.
61
+
62
+ ```bash
63
+ monoverse remove lodash
64
+ monoverse rm lodash
65
+ ```
66
+
67
+ ### lint
68
+
69
+ Check for issues across all workspaces.
70
+
71
+ ```bash
72
+ monoverse lint
73
+ ```
74
+
75
+ Detects:
76
+ - Version mismatches across workspaces
77
+ - Unpinned versions (`^1.0.0`, `~1.0.0`)
78
+ - Unformatted package.json files
79
+ - Duplicate workspace names
80
+
81
+ ### fix
82
+
83
+ Auto-fix detected issues.
84
+
85
+ ```bash
86
+ monoverse fix
87
+ monoverse fix -i
88
+ ```
89
+
90
+ | Option | Description |
91
+ |--------|-------------|
92
+ | `-i, --interactive` | Resolve version mismatches interactively |
93
+
94
+ ### format
95
+
96
+ Format all package.json files.
97
+
98
+ ```bash
99
+ monoverse format
100
+ ```
101
+
102
+ ## Advanced Configuration
103
+
104
+ For managing multiple monorepos together, create a `monoverse.json`:
105
+
106
+ ```json
107
+ {
108
+ "projects": [".", "../other-monorepo", "./packages/*"]
109
+ }
110
+ ```
111
+
112
+ Accepts direct paths and glob patterns.
113
+
114
+ ## License
115
+
116
+ MIT