-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typegen: Cannot find package execa, config being ignored #429
Comments
Re the missing Re the exclude pattern, it might be a couple of things - maybe the config file is being ignored completely for some reason? What is it named and how are you invoking the CLI? |
Using a specific version did allow me to launch it, but - I'm still facing the issue with the config being ignored. When I don't have the config as advised by the docs, the program crashes with:
With the config file in the right place:
Unfortunately, even with the config path provided to the cli, the config in its entirety seems to not work, though yet with another different error structure:
Tried with config: import 'dotenv/config';
/** @type {import('@pgkit/typegen').Options} */
export default {
rootDir: 'src',
include: ['../db/schema.sql', '../src/database/**.ts'],
exclude: ['**/*.ts'],
connectionURI: `postgresql://${process.env.DATABASE_URI}`,
}; I discovered |
I figured out from the typegen source code that the docs were supposed to say Now I'm stuck with all queries at |
You happen to have been using this at a time where a ton of stuff was being worked on in the typegen package. Do you still get that error on version 0.2.4? ( If you do, could you share either the full stack trace, or even better, the repo you're working on or a smaller reproduction repo? |
I fixed some error in the typegen, where it erroring out on not finding a type for the last "Column" that postgres always sent - |
It also seems that my exclude pattern was ignored, because it should've found 2 files, not all files in the
src
directory.config
after installing
execa
, I got:...TypeError: execa is not a function.
The text was updated successfully, but these errors were encountered: