@prisma-next/vite-plugin-contract-emit 0.5.0-dev.12 → 0.5.0-dev.14
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 +9 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,6 +6,13 @@ Vite plugin for automatic Prisma Next contract artifact emission during developm
|
|
|
6
6
|
|
|
7
7
|
This plugin integrates with Vite's dev server to automatically emit contract artifacts (`contract.json` and `contract.d.ts`) when you start the server and whenever your contract authoring files change.
|
|
8
8
|
|
|
9
|
+
## Support Matrix
|
|
10
|
+
|
|
11
|
+
- Supported Vite majors: 7 and 8
|
|
12
|
+
- Peer dependency range: `^7.0.0 || ^8.0.0`
|
|
13
|
+
- Validation: the repo runs `test/integration/test/vite-plugin.hmr.e2e.test.ts` against both majors
|
|
14
|
+
- Compatibility note: the current implementation uses the same `configureServer` and `handleHotUpdate` flow on Vite 7 and Vite 8; there is no Vite-8-specific code path today, so the support matrix exists to catch future hook or overlay regressions early
|
|
15
|
+
|
|
9
16
|
## Features
|
|
10
17
|
|
|
11
18
|
- **Emit on startup**: Emits contract artifacts when the Vite dev server starts
|
|
@@ -19,6 +26,8 @@ This plugin integrates with Vite's dev server to automatically emit contract art
|
|
|
19
26
|
|
|
20
27
|
## Installation
|
|
21
28
|
|
|
29
|
+
Install the plugin alongside Vite 7 or Vite 8.
|
|
30
|
+
|
|
22
31
|
```bash
|
|
23
32
|
pnpm add -D @prisma-next/vite-plugin-contract-emit vite
|
|
24
33
|
```
|
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.14",
|
|
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/cli": "0.5.0-dev.
|
|
13
|
-
"@prisma-next/emitter": "0.5.0-dev.
|
|
12
|
+
"@prisma-next/cli": "0.5.0-dev.14",
|
|
13
|
+
"@prisma-next/emitter": "0.5.0-dev.14"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "24.10.4",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@prisma-next/tsdown": "0.0.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"vite": "
|
|
25
|
+
"vite": "^7.0.0 || ^8.0.0"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=20"
|