zenstack
zenstack copied to clipboard
generate command not working for multirepo project
Description and expected behavior This is a multirepo project which have server and web inside the root directory.
server/package.json
"scripts": {
"with-env": "dotenv -e ../.env --",
"db:gen": "yarn with-env prisma generate --schema=./lib/prisma/prisma/schema.prisma",
"db:push": "yarn with-env prisma db push --schema=./lib/prisma/prisma/schema.prisma",
"zen:gen": "yarn zenstack generate --schema=./lib/prisma/schema.zmodel",
},
Screenshots
Running the same command at the root directory is working.
Environment (please complete the following information):
- ZenStack version: [e.g., 2.0.0]
- Prisma version: [e.g., 5.7.0]
- Database type: [e.g. Postgresql]
Additional context Add any other context about the problem here.
Hi @iolathief108 , thanks for reporting this. Does it work if you run "yarn db:gen" inside the "server" directory?
Hi @iolathief108 , thanks for reporting this. Does it work if you run "yarn db:gen" inside the "server" directory?
yes