How to get project directory in nuxt kit ?

I want to create a nuxt module with nuxt kit that add a custom alias.

But to do this I need to have the project dir :
nuxt.options.alias = Object.assign(nuxt.options.alias ?? {}, {
  mylib: resolve(projectDir, './node_modules/mylib')
})


How can I acheve such a thing ?
Was this page helpful?