Open harastaivan opened 1 year ago
I was able to run like this on deno.json
:
"tasks": {
"kysely-codegen": "echo \"import 'npm:pg@^8.11.3'; import 'npm:kysely-codegen@^0.11.0';\" | deno run --allow-env -A npm:kysely-codegen@^0.11.0 - kysely-codegen --dialect=postgres --out-file ./src/database-types.ts --env-file .env"
},
Or try to cache required package before run codegen:
deno cache npm:pg && deno run -A npm:kysely-codegen --out-file=./db_schema.ts
Hello, I tried to use
kysely-codegen
with Deno. Sincekysely
supports Deno, I thoughtkysely-codegen
will work too.I ran:
It outputs:
But it seems it doesn't do anything. Could you test it and possibly help me what's the problem? I'm happy to help with investigation but need some guide
Upvote & Fund