Skip to content

Commit 62f4f23

Browse files
committed
chore(scripts): make prepare script ignore symlink creation failures
Add "|| true" to the ln -s command in the prepare script to prevent the entire prepare process from failing when symlink creation doesn't work. This ensures that git hooks setup and schema generation can complete successfully even in environments where symlink creation fails (such as certain Windows configurations or restricted filesystems). The symlink from CLAUDE.md to AGENTS.md is helpful for development but not critical for the package to function properly.
1 parent 26e947d commit 62f4f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"lint": "eslint --cache .",
5252
"mcp": "bunx @modelcontextprotocol/inspector bun run start mcp",
5353
"prepack": "bun run build && bun clean-pkg-json -r scripts.preinstall",
54-
"prepare": "git config --local core.hooksPath .githooks && bun run generate:schema && ln -s ./CLAUDE.md ./AGENTS.md",
54+
"prepare": "git config --local core.hooksPath .githooks && bun run generate:schema && ln -s ./CLAUDE.md ./AGENTS.md || true",
5555
"release": "bun lint && bun typecheck && vitest && bun run build && bumpp",
5656
"start": "bun run ./src/index.ts",
5757
"test": "TZ=UTC vitest",

0 commit comments

Comments
 (0)