File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export interface ModuleOptions {
3131 injectDbCredentials : boolean
3232 projectInit : boolean
3333 installCli : boolean
34+ identityModel : string
3435}
3536
3637const { resolve : resolveLocal } = createResolver ( import . meta. url )
@@ -67,6 +68,7 @@ export default defineNuxtModule<ModuleOptions>({
6768 injectDbCredentials : true ,
6869 auth : false ,
6970 oauth : false ,
71+ identityModel : 'User' ,
7072 } ,
7173 async setup ( options , nuxt ) {
7274 const { successMessage : success , errorMessage : error , edgeColor } = useLogger ( )
@@ -78,6 +80,11 @@ export default defineNuxtModule<ModuleOptions>({
7880 const hasConfigFile = ( ) => existsSync ( edgeDbConfigPath )
7981 const canPrompt = nuxt . options . dev
8082
83+ // Transpile edgedb
84+ nuxt . options . build = nuxt . options . build ?? { }
85+ nuxt . options . build . transpile ??= [ ]
86+ nuxt . options . build . transpile . push ( 'edgedb' )
87+
8188 async function piped$ (
8289 command : string ,
8390 args : string [ ] ,
You can’t perform that action at this time.
0 commit comments