codegen/README.md

9 lines
470 B
Markdown
Raw Permalink Normal View History

2024-11-23 21:12:39 +00:00
# codegen
2025-02-19 20:02:21 -08:00
A script that turns `[filename].gen.ts` files into `[filename].ts` files by running the function exported by the `.gen.ts` files and putting the result of that function into the output `.ts` file. This is useful for any kind of codegen such as if you want to have a file that wants to do bulk imports of all the ts files in a different directory, or codegen database schema types, and so on.
2024-11-23 14:18:52 -08:00
Use:
```sh
deno run --allow-read --allow-write src/codegen.ts
```