build(coding-agent): generate docs index as build artifact

- Add 'prepack' script so bun publish regenerates the index before packing
- Add root-level 'prepare' script so bun install regenerates after cloning
- Gitignore and untrack docs-index.generated.ts
- Remove 'docs' from package.json 'files'

fixes #116
This commit is contained in:
Emil Sit
2026-02-19 23:09:50 -05:00
committed by can1357
parent c6f3eff8c4
commit 47b2664adc
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -31,6 +31,7 @@
"version:major": "npm version major -ws --no-git-tag-version && bun scripts/sync-versions.ts && rm -rf node_modules packages/*/node_modules bun.lock && bun install",
"version:set": "npm version -ws",
"prepublishOnly": "bun run check",
"prepare": "bun --cwd=packages/coding-agent run generate-docs-index",
"publish": "bun run prepublishOnly && npm publish -ws --access public",
"publish:dry": "bun run prepublishOnly && npm publish -ws --access public --dry-run",
"release": "bun scripts/release.ts",