diff --git a/CLAUDE.md b/CLAUDE.md index 06698432c..6bc846c03 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -93,7 +93,7 @@ npm run release:dry-run # Preview what release would do without writing **Pipeline:** Source files → tree-sitter parse → extract symbols → resolve imports → SQLite DB → query/search -Source is TypeScript in `src/`, compiled via `tsup`. The Rust native engine lives in `crates/codegraph-core/`. +Source is TypeScript in `src/`, compiled via plain `tsc` (no bundler) — a runtime (non-type-only) `import` in `src/` survives into `dist/` as a real module resolution, so a package a non-type-only, non-lazy-loaded code path depends on must be a `dependencies` entry, never demoted to `devDependencies` on the assumption a bundler would have inlined it (type-only imports are elided by `tsc`; some packages are deliberately kept optional and lazy-loaded instead — see `@huggingface/transformers`/`@modelcontextprotocol/sdk` below). The Rust native engine lives in `crates/codegraph-core/`. | Path | Role | |------|------| diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 89af2738f..7ceb74828 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -355,7 +355,7 @@ Use [GitHub Issues](https://github.com/optave/ops-codegraph-tool/issues) with: ## Code Style -- Source is TypeScript (`src/`), compiled via `tsc`/`tsup`; run `npm run typecheck` to type-check without emitting +- Source is TypeScript (`src/`), compiled via plain `tsc` (no bundler); run `npm run typecheck` to type-check without emitting - [Biome](https://biomejs.dev/) is used for linting and formatting (config in `biome.json`, scoped to `src/` and `tests/`) - Run `npm run lint` to check and `npm run lint:fix` to auto-fix - The pre-commit hook runs the linter automatically