Add marker comments when generating code
seanf opened this issue · comments
It would be good if kysely-codegen could add a marker comment at the top of the file when generating code. For instance:
// This file was generated automatically by kysely-codegen.
// Please do not edit it by hand.
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
This would be nice as a part of the library.
My hack for this currently is:
kysely-codegen --out-file src/db/types.d.ts && printf \"// This is an auto-generated file. Do not edit it directly.\n// See 'Generating DB schema types for Kysely' in README.\n\n$(cat src/db/types.d.ts)\" > src/db/types.d.ts