Commit 71dd980
committed
Make the prepare script tolerate missing agent directories
skills-npm exits with status 1 when it can't detect any agent
directory (.claude, .cursor, .opencode, etc.) to install skills
into. In a container build the source tree is copied without
those directories, so "pnpm install" failed at the prepare hook
with "No agents detected. Use --agents to specify target agents"
and the image build never reached "pnpm run build".
Tagging the script with "|| true" lets skills-npm finish silently
in environments with no agent setup while still installing skills
in local development.
Assisted-by: Claude Code:claude-opus-4-71 parent b3106e6 commit 71dd980
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments