mirror of https://github.com/cupcakearmy/zod.git
Add UMD build (#1067)
This commit is contained in:
parent
a6e13ccf9f
commit
c7792de989
|
@ -0,0 +1,2 @@
|
|||
export * from "./lib";
|
||||
export as namespace Zod;
|
|
@ -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",
|
||||
|
|
|
@ -10,6 +10,12 @@ export default [
|
|||
format: "es",
|
||||
sourcemap: false,
|
||||
},
|
||||
{
|
||||
file: "lib/index.umd.js",
|
||||
name: "Zod",
|
||||
format: "umd",
|
||||
sourcemap: false,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
typescript({
|
||||
|
|
Loading…
Reference in New Issue