
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@nx-tools/nx-prisma
Advanced tools
This builder provides a wrapper around the [Prisma CLI](https://www.npmjs.com/package/@prisma/cli)
@nx-tools/nx-prisma
This builder provides a wrapper around the Prisma CLI
The first step is configure the builder in your angular.json
or workspace.json
.
You will need at least one project per each prisma schema you make. The prisma schemas can be in already existing backend/frontend projects OR in their own libraries.
Each CLI command uses it's own architect so add the ones you need from the examples bellow.
"deploy": {
"builder": "@nx-tools/nx-prisma:generate",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"generate": {
"builder": "@nx-tools/nx-prisma:generate",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"migrate": {
"builder": "@nx-tools/nx-prisma:migrate",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"pull": {
"builder": "@nx-tools/nx-prisma:rollback",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"push": {
"builder": "@nx-tools/nx-prisma:seed",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"reset": {
"builder": "@nx-tools/nx-prisma:seed",
"options": {
"schema": "apps/api/schema.prisma"
}
},
"seed": {
"builder": "@nx-tools/nx-prisma:seed",
"options": {
"script": "apps/examples/prisma/data/seed.ts",
"tsConfig": "apps/examples/prisma/tsconfig.tools.json"
}
},
"status": {
"builder": "@nx-tools/nx-prisma:seed",
"options": {
"schema": "apps/api/schema.prisma"
}
}
Note that the options use absolute paths to where your configuration files live in your repository.
Once your angular.json
or workspace.json
is configured you can run the commands using the the Angular/NX CLI.
nx <architect> <project>
# OR
ng <architect> <project>
# ie
nx migrations prisma
FAQs
The Nx Plugin for Prisma contains executors, generators, and utilities for managing Prisma applications within an Nx workspace. It provides:
The npm package @nx-tools/nx-prisma receives a total of 8,331 weekly downloads. As such, @nx-tools/nx-prisma popularity was classified as popular.
We found that @nx-tools/nx-prisma demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.