Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UMD build #1067

Merged
merged 2 commits into from Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.d.ts
@@ -0,0 +1,2 @@
export * from "./lib";
export as namespace Zod;
7 changes: 4 additions & 3 deletions package.json
Expand Up @@ -3,19 +3,20 @@
"version": "3.14.4",
"description": "TypeScript-first schema declaration and validation library with static type inference",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"types": "./index.d.ts",
"module": "./lib/index.mjs",
"dependencies": {},
"exports": {
".": {
"require": "./lib/index.js",
"import": "./lib/index.mjs",
"types": "./lib/index.d.ts"
"types": "./index.d.ts"
},
"./package.json": "./package.json"
},
"files": [
"/lib"
"/lib",
"/index.d.ts"
],
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions rollup.config.js
Expand Up @@ -10,6 +10,12 @@ export default [
format: "es",
sourcemap: false,
},
{
file: "lib/index.umd.js",
name: "Zod",
format: "umd",
sourcemap: false,
},
],
plugins: [
typescript({
Expand Down