-
I have a The commands look like this(run from the root of the To generate the query builder
To generate the interfaces
What I would like is to add these 2 generate tasks, but also include them in the build step before the Is the best way here to just create a new TypeScript project(where the build step is running those tasks) and make it a dependency of my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Also another database related question, tho it's more of Lambda question. I'm using export class DBClient {
/** Creates a new connection to our EdgeDB server for data access
*
* @returns a new client connected to our EdgeDB instance
*/
public static create(connString: string | undefined = undefined): edgedb.Client {
const client = edgedb.createClient(connString);
return client;
}
} But I call |
Beta Was this translation helpful? Give feedback.
-
I think that's the best way! If you generate your code into a |
Beta Was this translation helpful? Give feedback.
I think that's the best way! If you generate your code into a
TypeScriptProject
managed by projen and part of the monorepo, it makes it fairly straightforward to add dependencies! Your suggestion is basically how TypeSafeApi works under the hood - where code generation is run as part of thepreCompile
task for the relevant projects :)