-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i SWEAR i hate tooling. The `sed` in the build script is needed because since I use `import type`, tsc figures that `exporter.ts` is a module (even though types are supposed to be "erased at compile time"), so it includes some annoying shim one-liner that tries to define a module, except that breaks in browser because it's not actually a module. I need to use `import type` because I couldn't figure out any other way to have tsc figure out the type of z.infer while keeping the other globals defined. All in all this works well enough, if you're a tooling genius god please fix this, otherwise I give up this is good enough. If you're developping, you'll just need to not copy/paste the first two lines of the built exporter.js file.
- Loading branch information
Showing
6 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,6 @@ jobs: | |
run: | | ||
git config user.name "Github Actions" | ||
git config user.email "[email protected]" | ||
git add -f --all | ||
git add -f ./exporter.js | ||
git commit -m "Build files" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type { infer as ZodInfer } from "zod/lib/types"; |