Skip to content

Commit

Permalink
feat: provide browser-ready bundle (requires zod import-map) (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 authored Sep 27, 2024
1 parent c318506 commit 995ed37
Show file tree
Hide file tree
Showing 2 changed files with 608 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "MIT",
"scripts": {
"test": "vitest --coverage --silent=false --reporter=basic",
"build": "rm -rf dist && pnpm tsc && cp schema.zodex.json dist/schema.zodex.json",
"build": "rm -rf dist && pnpm tsc && cp schema.zodex.json dist/schema.zodex.json && tsup index.ts --format esm --legacy-output",
"prepublish": "pnpm run build"
},
"peerDependencies": {
Expand All @@ -28,6 +28,7 @@
"devDependencies": {
"@vitest/coverage-v8": "^2.0.5",
"prettier": "2.8.8",
"tsup": "^8.3.0",
"typescript": "5.5.4",
"vitest": "2.0.5"
},
Expand Down
Loading

0 comments on commit 995ed37

Please sign in to comment.