This repository was archived by the owner on Apr 19, 2026. It is now read-only.
🚀 Migrate to Bun and refactor to modular generator architecture#16
Merged
🚀 Migrate to Bun and refactor to modular generator architecture#16
Conversation
- Migrated build system from TypeScript compiler to Bun - Added native Bun development workflow with high-speed execution - Maintained full Node.js compatibility for npm distribution - Updated package.json with Bun-optimized scripts and metadata - Added npm publish configuration following ccusage patterns - Configured files field to include only dist directory - Updated tsconfig.json for Bun compatibility (ESNext, bundler) - Added Bun types support and removed pnpm-lock.yaml - Updated .gitignore following ccusage patterns - Verified Node.js compatibility for npx execution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Breaking Changes: - Renamed project from ai-rule-forge to ai-docs-cli - Changed CLI command from `npx ai-rule-forge` to `npx ai-docs` Major Changes: - Migrated development environment to Bun for improved performance - Removed tsx dependency in favor of Bun's native TypeScript support - Updated build system to use Bun with Node.js compatibility - Added TypeScript declaration files generation - Created comprehensive CI/CD pipeline with GitHub Actions New Features: - Bun-first development workflow (direct TS execution) - Cross-runtime testing (Node.js 18, 20, 22) - Automated npm publishing workflow - Optimized package distribution with .npmignore Technical Details: - Package size: 8.6 KB (compressed) - Supports both `npx ai-docs-cli` and `npx ai-docs` commands - Templates included in npm distribution - Full backward compatibility with Node.js runtime 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Remove prefix-based filtering system in favor of clean generator architecture - Create individual generator modules for each AI tool (Copilot, Cline, Cursor) - Implement pure function generators that return file paths and content - Separate compilation logic from file I/O operations - Update directory structure from ai-docs/_rules to ai-docs/rules - Simplify template files with concise, practical content - Add ignore template with node_modules pattern - Update documentation to reflect new modular architecture 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Major changes: - Renamed project from ai-docs-cli to ai-doc-sync - Default behavior now runs sync (no subcommand needed) - Changed --plan option to plan subcommand - Removed redundant sync subcommand Breaking changes: - npx ai-docs-cli → npx ai-doc-sync - ai-docs sync → ai-doc-sync (default) - ai-docs sync --plan → ai-doc-sync plan 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR migrates the project from TypeScript/pnpm to Bun and introduces a modular generator architecture, significantly improving build performance and code maintainability.
Major Changes
🎯 Build System Migration
tscto Bun for JavaScript compilation📦 Package Management
bun.lockfor reproducible installs♻️ Modular Generator Architecture
rule-generator.tsinto separate generator modules🔧 CLI Improvements
compile→sync,preview→plansrc/cli.tsfile🚀 Performance & DX
bun run devprovides instant TypeScript execution📝 Project Rename
ai-doc-sync(fromai-rule-forge)Breaking Changes
syncinstead ofcompile,planinstead ofpreviewai-docs/_rules/toai-docs/rules/Testing
Migration Guide
For developers:
For users (unchanged):