zenstack icon indicating copy to clipboard operation
zenstack copied to clipboard

[Feature Request] DRY up configuration for prisma schema location

Open juni0r opened this issue 1 year ago • 2 comments

In order to DRY up the configuration, consider using the default schema location defined in package.json for prisma.schema unless zenstack.prisma is specified.

Currently

package.json

{
  "zenstack": {
    "schema": "models/schema.zmodel",
    "prisma": "models/prisma/schema.prisma"
  },
  "prisma": {
    "schema": "models/prisma/schema.prisma"
  },
}

Desired

{
  "zenstack": {
    "schema": "models/schema.zmodel",
  },
  "prisma": {
    "schema": "models/prisma/schema.prisma"
  },
}

juni0r avatar Feb 17 '24 10:02 juni0r

Good idea @juni0r ! It looks better and avoids duplicates. I'll mark it V2 since if it's not urgent?

ymc9 avatar Feb 19 '24 01:02 ymc9

Not urgent at all. Thanks!

juni0r avatar Feb 19 '24 07:02 juni0r