@leeovery/claude-manager 2.0.8 → 2.0.10

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 (2) hide show
  1. package/README.md +26 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,10 +18,10 @@
18
18
 
19
19
  ## Versions
20
20
 
21
- | Version | Package Manager | Status | Branch |
22
- |---------|----------------|--------|--------|
23
- | 2.x | npm | **Active** | `main` |
24
- | 1.x | Composer | Deprecated | [`v1`](https://github.com/leeovery/claude-manager/tree/v1) |
21
+ | Version | Package Manager | Status | Branch |
22
+ |---------|-----------------|------------|------------------------------------------------------------|
23
+ | 2.x | npm | **Active** | `main` |
24
+ | 1.x | Composer | Deprecated | [`v1`](https://github.com/leeovery/claude-manager/tree/v1) |
25
25
 
26
26
  > **Note:** This package is installed automatically as a dependency of plugins.
27
27
  > To migrate from v1, update your plugins to their v2 versions (npm-based).
@@ -47,16 +47,30 @@ Instead of manually copying skill files between projects, you can install them a
47
47
  The manager is installed automatically as a dependency of plugin packages. When you install a Claude plugin:
48
48
 
49
49
  ```bash
50
- npm install @your-org/claude-your-plugin
50
+ npm install -D @your-org/claude-your-plugin
51
51
  # or
52
- pnpm add @your-org/claude-your-plugin
52
+ pnpm add -D @your-org/claude-your-plugin
53
53
  # or
54
- yarn add @your-org/claude-your-plugin
54
+ yarn add -D @your-org/claude-your-plugin
55
55
  ```
56
56
 
57
57
  The plugin's postinstall script copies assets to `.claude/`. That's it.
58
58
 
59
- **Note:** pnpm blocks postinstall scripts by default. After installing, run `pnpm approve-builds` to approve the packages, then `pnpm install` again.
59
+ ### pnpm Users
60
+
61
+ pnpm doesn't expose binaries from transitive dependencies, so install the manager directly alongside plugins:
62
+
63
+ ```bash
64
+ pnpm add -D @leeovery/claude-manager @leeovery/claude-laravel
65
+ pnpm approve-builds # approve when prompted
66
+ pnpm install # triggers postinstall
67
+ ```
68
+
69
+ **Removal:** pnpm's `preuninstall` hook is broken ([issue #3276](https://github.com/pnpm/pnpm/issues/3276)). Remove files first:
70
+
71
+ ```bash
72
+ npx claude-plugins remove @leeovery/claude-laravel && pnpm remove @leeovery/claude-laravel
73
+ ```
60
74
 
61
75
  ## How It Works
62
76
 
@@ -120,13 +134,13 @@ Want to create your own skill or command packages?
120
134
  "@leeovery/claude-manager": "^2.0.0"
121
135
  },
122
136
  "scripts": {
123
- "postinstall": "node -e \"require('@leeovery/claude-manager').add()\"",
124
- "preuninstall": "node -e \"require('@leeovery/claude-manager').remove()\""
137
+ "postinstall": "claude-plugins add",
138
+ "preuninstall": "claude-plugins remove"
125
139
  }
126
140
  }
127
141
  ```
128
142
 
129
- The `postinstall` script copies assets when the plugin is installed. The `preuninstall` script cleans up when the plugin is removed. Using `node -e` ensures compatibility with all package managers (npm, pnpm, yarn).
143
+ The `postinstall` script copies assets when the plugin is installed. The `preuninstall` script cleans up when the plugin is removed.
130
144
 
131
145
  ### Plugin Structure
132
146
 
@@ -204,7 +218,7 @@ ls -la .claude/hooks/
204
218
 
205
219
  Verify the plugin's package.json has:
206
220
  - `@leeovery/claude-manager` as a dependency
207
- - `postinstall` and `preuninstall` scripts using `node -e`
221
+ - `postinstall` and `preuninstall` scripts
208
222
  - A `skills/`, `commands/`, `agents/`, or `hooks/` directory with content
209
223
 
210
224
  ## Requirements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leeovery/claude-manager",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "packageManager": "pnpm@10.27.0",
5
5
  "description": "Plugin manager for Claude Code skills and commands",
6
6
  "type": "module",