Skip to content

Commit 71dd980

Browse files
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-7
1 parent b3106e6 commit 71dd980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"type": "module",
77
"scripts": {
8-
"prepare": "skills-npm",
8+
"prepare": "skills-npm || true",
99
"prod": "pnpm run migrate && node --env-file-if-exists=.env --dns-result-order=ipv6first dist/bin/server.js",
1010
"dev": "pnpm run migrate && pnpm run uno:build && concurrently -k -n uno,app -c blue,green \"pnpm run uno:watch\" \"tsx watch --env-file-if-exists=.env --dns-result-order=ipv6first bin/server.ts\"",
1111
"worker": "NODE_TYPE=worker node --env-file-if-exists=.env --dns-result-order=ipv6first dist/bin/server.js",

0 commit comments

Comments
 (0)