@powerlines/plugin-prisma 0.4.359 → 0.4.361
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -74,6 +74,34 @@ A Powerlines plugin to generate project code with [Prisma](https://www.prisma.io
|
|
|
74
74
|
|
|
75
75
|
<!-- END doctoc -->
|
|
76
76
|
|
|
77
|
+
## Features
|
|
78
|
+
|
|
79
|
+
- Generates project code and a Prisma client from a Prisma schema (PSL).
|
|
80
|
+
- Reads the schema from a configured path (e.g. `./prisma/schema.prisma`).
|
|
81
|
+
- Re-runs generation after the schema changes.
|
|
82
|
+
|
|
83
|
+
## Usage
|
|
84
|
+
|
|
85
|
+
Install the package:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
pnpm add @powerlines/plugin-prisma
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Register the plugin in `powerlines.config.ts`:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { defineConfig } from "powerlines/config";
|
|
95
|
+
import { plugin as prisma } from "@powerlines/plugin-prisma";
|
|
96
|
+
|
|
97
|
+
export default defineConfig({
|
|
98
|
+
plugins: [prisma({ schema: "./prisma/schema.prisma" })],
|
|
99
|
+
prisma: { schema: "./prisma/schema.prisma" }
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Then run the Powerlines build for your project and import the generated client in your app code.
|
|
104
|
+
|
|
77
105
|
## Installing
|
|
78
106
|
|
|
79
107
|
Using [pnpm](http://pnpm.io):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-prisma",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.361",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code and a Prisma client from a Prisma schema (PSL).",
|
|
6
6
|
"keywords": ["prisma", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
"@power-plant/core": "^0.0.98",
|
|
94
94
|
"@power-plant/prisma": "^0.0.79",
|
|
95
95
|
"@power-plant/prisma-schema": "^0.0.1",
|
|
96
|
-
"@powerlines/plugin-power-plant": "^0.1.
|
|
97
|
-
"@powerlines/plugin-pulumi": "^0.6.
|
|
96
|
+
"@powerlines/plugin-power-plant": "^0.1.74",
|
|
97
|
+
"@powerlines/plugin-pulumi": "^0.6.320",
|
|
98
98
|
"@stryke/path": "^0.29.43",
|
|
99
99
|
"@stryke/string-format": "^0.17.58",
|
|
100
100
|
"defu": "^6.1.7",
|
|
101
|
-
"powerlines": "^0.47.
|
|
101
|
+
"powerlines": "^0.47.217"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
104
|
+
"@powerlines/plugin-plugin": "^0.12.630",
|
|
105
105
|
"@pulumi/pulumi": "^3.271.0",
|
|
106
106
|
"@types/node": "^25.9.9"
|
|
107
107
|
},
|
|
108
108
|
"publishConfig": { "access": "public" },
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
|
|
110
110
|
}
|