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:
@@ -51,3 +51,6 @@ syntax.jsonl
|
||||
out.jsonl
|
||||
out.html
|
||||
pi-*.html
|
||||
|
||||
# Generated files
|
||||
packages/coding-agent/src/internal-urls/docs-index.generated.ts
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -70,7 +70,6 @@
|
||||
"files": [
|
||||
"src",
|
||||
"scripts",
|
||||
"docs",
|
||||
"examples",
|
||||
"README.md",
|
||||
"CHANGELOG.md"
|
||||
@@ -79,6 +78,7 @@
|
||||
"check": "tsgo -p tsconfig.json",
|
||||
"format-prompts": "bun scripts/format-prompts.ts",
|
||||
"generate-docs-index": "bun scripts/generate-docs-index.ts",
|
||||
"prepack": "bun scripts/generate-docs-index.ts",
|
||||
"build:binary": "cd ../.. && bun --cwd=packages/stats scripts/generate-client-bundle.ts && bun --cwd=packages/natives run embed:native && bun build --compile --define PI_COMPILED=true --root . ./packages/coding-agent/src/cli.ts --outfile packages/coding-agent/dist/omp && bun --cwd=packages/natives run embed:native --reset && bun --cwd=packages/stats scripts/generate-client-bundle.ts --reset",
|
||||
"generate-template": "bun scripts/generate-template.ts",
|
||||
"test": "bun test"
|
||||
|
||||
Reference in New Issue
Block a user