@prisma-next/vite-plugin-contract-emit 0.5.0-dev.29 → 0.5.0-dev.30
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 +3 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -126,14 +126,10 @@ graph TD
|
|
|
126
126
|
`disposeEmitQueue` exports — the canonical publish path
|
|
127
127
|
- **vite**: Peer dependency (`^7.0.0 || ^8.0.0`)
|
|
128
128
|
|
|
129
|
-
##
|
|
129
|
+
## Examples
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
- `vite.
|
|
133
|
-
- `pnpm dev` script to start Vite
|
|
134
|
-
- `prisma/contract.ts` as the contract authoring source
|
|
135
|
-
|
|
136
|
-
Run `pnpm dev` in the demo, edit `prisma/contract.ts`, and watch the artifacts regenerate.
|
|
131
|
+
- `examples/prisma-next-demo` — plain Vite + React SPA, covers TS-first and PSL-first contracts. Run `pnpm dev`, edit `prisma/contract.ts`, watch the artifacts regenerate.
|
|
132
|
+
- `examples/react-router-demo` — React Router v7 Framework Mode (SSR). The plugin runs alongside `@react-router/dev/vite`; a `loader` and an `action` exercise the Prisma Next runtime on the server, and a smoke test proves a PSL edit re-emits the contract without a manual command. See `examples/react-router-demo/test/react-router.smoke.e2e.test.ts` for the validation flow.
|
|
137
133
|
|
|
138
134
|
## Related
|
|
139
135
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/vite-plugin-contract-emit",
|
|
3
|
-
"version": "0.5.0-dev.
|
|
3
|
+
"version": "0.5.0-dev.30",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"pathe": "^2.0.3",
|
|
12
|
-
"@prisma-next/
|
|
13
|
-
"@prisma-next/
|
|
12
|
+
"@prisma-next/emitter": "0.5.0-dev.30",
|
|
13
|
+
"@prisma-next/cli": "0.5.0-dev.30"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "24.10.4",
|