Currently, in
|
if (!options.installStudio || npmLifecycleEvent !== "dev") { |
|
consola.info(PREDEFINED_LOG_MESSAGES.skipInstallingPrismaStudio); |
|
return; |
|
} |
, we do an early return, when "npm_lifecycle_event" is not "dev".
"npm_lifecycle_event" is only "dev" if the nuxt dev server is started through a package.json script in the form of:
When manually running npx nuxt dev, prisma studio is never initialized, this is quite confusing IMO.
Wouldn't it make more sense to simply check whether NODE_ENV is set to "development"?