Commit 42d9f73
committed
fix(plugin): move marketplace.json to repo root so GitHub install works
Follow-up to #374. The nested location
(packages/plugin/.claude-plugin/marketplace.json) still prevented the
GitHub-URL install flow because the CLI always looks for
'<repo-root>/.claude-plugin/marketplace.json' — '--sparse' limits
checkout scope but does not change the manifest lookup path.
Evidence of the remaining bug after #374:
$ claude plugin marketplace add https://github.com/toss/react-simplikit \
--sparse packages/plugin
✘ Failed to add marketplace: Marketplace file not found at
<temp>/.claude-plugin/marketplace.json
Changes:
- Create .claude-plugin/marketplace.json at the repo root with
'source': './packages/plugin' pointing at the plugin
- Delete the redundant packages/plugin/.claude-plugin/marketplace.json
- Update the README install command to sparse-checkout both the
root manifest and the plugin directory:
--sparse .claude-plugin packages/plugin
Verified locally (using the repo-root path, which mirrors what the
clone looks like after merge):
claude plugin validate . → ✓ Passed
claude plugin marketplace add <repo-root> --scope local → ✓ Added
claude plugin install react-design-philosophy@... → ✓ Installed, enabled1 parent 77fe507 commit 42d9f73
2 files changed
Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments