Fix rollup build

This commit is contained in:
Colin McDonnell 2023-03-04 01:52:45 -08:00
parent 3c6cdd245a
commit bc43ad18e6
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
import * as mod from "./external.ts";
import * as z from "./external.ts";
export * from "./external.ts";
export { mod as z };
export default mod;
export { z };
export default z;

View File

@ -1,4 +1,2 @@
import { z } from "./src";
const a = z.object({ a: z.string() }).passthrough();
type a = z.infer<typeof a>;
z;

View File

@ -9,12 +9,14 @@ export default [
file: "lib/index.mjs",
format: "es",
sourcemap: false,
exports: "named",
},
{
file: "lib/index.umd.js",
name: "Zod",
format: "umd",
sourcemap: false,
exports: "named",
},
],
plugins: [

View File

@ -1,4 +1,4 @@
import * as mod from "./external";
import * as z from "./external";
export * from "./external";
export { mod as z };
export default mod;
export { z };
export default z;