Skip to content

Commit 81b4a95

Browse files
committed
Small fixes
1 parent 88359f1 commit 81b4a95

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

CLAUDE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
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"`
@@ -21,9 +25,9 @@
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

2933
For release process, see RELEASE.md

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@
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
},

0 commit comments

Comments
 (0)