File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1+ # CLAUDE.md
2+
3+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
15# zod-from-json-schema Development Guidelines
26
37## Commands
48- ** Build** : ` npm run build ` (generates CJS and ESM outputs)
5- - ** Test all** : ` npm test `
9+ - ** Test all** : ` npm test ` (runs with coverage)
610- ** Test single file** : ` npx vitest run src/path/to/file.test.ts `
711- ** Test with pattern** : ` npx vitest run -t "test pattern" `
812- ** Run specific test** : ` npx vitest run src/index.test.ts -t "should extract properties" `
2125## Architecture
2226- Maintain dual module support (CJS/ESM) for all exports
2327- Keep conversion logic modular with single-responsibility functions
24- - Write tests for each feature and edge cases, including type validation
25- - CI runs tests on Node 18, 20, and 22 through GitHub Actions workflow
26- - Use esbuild for bundling with targeted ES2018 output
28+ - Write tests for each feature and edge cases, achieving 100% coverage
29+ - Target ES2018 for maximum compatibility ( Node 10+)
30+ - Use esbuild for bundling with optimized output
2731- Follow semantic versioning for releases
2832
2933For release process, see RELEASE.md
Original file line number Diff line number Diff line change 2525 },
2626 "author" :
" Mark Probst <[email protected] >" ,
2727 "license" : " MIT" ,
28- "repository" : " glideapps/zod-from-json-schema" ,
28+ "repository" : {
29+ "type" : " git" ,
30+ "url" : " git+https://github.com/glideapps/zod-from-json-schema.git"
31+ },
2932 "dependencies" : {
3033 "zod" : " ^3.24.2"
3134 },
You can’t perform that action at this time.
0 commit comments