diff --git a/.gitignore b/.gitignore index bd7096890..b1193c8af 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,6 @@ syntax.jsonl out.jsonl out.html pi-*.html + +# Generated files +packages/coding-agent/src/internal-urls/docs-index.generated.ts diff --git a/package.json b/package.json index 5cadb7440..73c5baa3d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index 7db65d112..c99cffb59 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -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"