This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This project is a Deno-based TypeScript library. Use the following commands:
# Code quality check, format, and lint
deno task fix
# Run tests
deno task test
# Build (dry-run publish)
deno task build
# Full check (precommit)
deno task precommitIndividual commands:
deno check **/*.ts- TypeScript type checkingdeno fmt- Code formattingdeno lint- Lintingdeno test **/*.test.ts- Run unit test files
-
Root Level: Main export files for each functional area
effect.ts- Effect library re-exportstype.ts- Type-fest utilitiesoption-t.ts- Option-t utilitiestemporal.ts,memo.ts,case.ts,di.ts, etc.
-
effect/ Directory: Effect ecosystem-related utilities
ai/- AI integrations (Anthropic, OpenAI)platform/- Platform-specific implementations (Node.js, Bun, Browser)test/- Testing utilities (Deno, Vitest support)rpc/,printer/- Specialized features
- Re-export Strategy: Each module provides external library re-exports + custom utilities
- JSR Support: Explicit module publishing via
deno.jsonexports - Effect Integration: Bridge functionality between Effect library ecosystem and Option-t library
- Test Isolation: Effect-specific test utilities (including TestClock leak mitigation)
- Use Conventional Commits format
- Write commit messages in English
- Examples:
feat: add non empty array helper,fix: improve slow types
- Effect library version is pinned to 3.17.1
- Optimized for Deno and JSR ecosystem
effect/test/deno.tsdisables sanitizers for TestClock leak mitigation- Rich TypeScript type helpers (see
effect/util.ts)