Skip to content

Commit

Permalink
Fix rollup build
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Mar 4, 2023
1 parent 3c6cdd2 commit bc43ad1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions deno/lib/index.ts
@@ -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;
4 changes: 1 addition & 3 deletions playground.ts
@@ -1,4 +1,2 @@
import { z } from "./src";

const a = z.object({ a: z.string() }).passthrough();
type a = z.infer<typeof a>;
z;
2 changes: 2 additions & 0 deletions rollup.config.js
Expand Up @@ -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: [
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
@@ -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;

0 comments on commit bc43ad1

Please sign in to comment.