Skip to content

Commit 2ea7255

Browse files
committed
chore: rewritted typebox generation logic
1 parent 4d3fb25 commit 2ea7255

File tree

2 files changed

+13
-30
lines changed

2 files changed

+13
-30
lines changed

scripts/build.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import path from "node:path";
2+
import { $ } from "bun";
3+
import { GenX } from "@toil/typebox-genx";
4+
5+
const packagePath = path.resolve(import.meta.dir, "..");
6+
await $`rm -rf dist`;
7+
await $`bun build:default`;
8+
await $`mkdir dist/typebox`;
9+
const genx = new GenX({ root: packagePath });
10+
await genx.generateByDir(
11+
path.resolve(packagePath, "src", "types"),
12+
path.resolve(packagePath, "dist", "typebox"),
13+
);

scripts/typebox-gen.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)