@baeta/plugin-prisma 1.0.9 → 2.0.0-next.0

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/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // lib/client-generator.ts
2
- import { readFile } from "node:fs/promises";
2
+ import { readFile } from "fs/promises";
3
3
  import { createExecPlugin } from "@baeta/plugin-exec";
4
4
  import { resolve } from "@baeta/util-path";
5
5
  async function compareSchemas(cwd, current, generated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baeta/plugin-prisma",
3
- "version": "1.0.9",
3
+ "version": "2.0.0-next.0",
4
4
  "keywords": [
5
5
  "baeta",
6
6
  "graphql",
@@ -27,8 +27,8 @@
27
27
  "type": "module",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "default": "./dist/index.js"
30
+ "types": "./index.ts",
31
+ "default": "./index.ts"
32
32
  }
33
33
  },
34
34
  "types": "dist/index.d.ts",
@@ -43,19 +43,19 @@
43
43
  "types": "tsc --noEmit"
44
44
  },
45
45
  "dependencies": {
46
- "@baeta/generator-sdk": "^1.0.1",
47
- "@baeta/plugin-exec": "^1.0.9",
48
- "@baeta/util-path": "^1.0.1",
49
- "execa": "^9.5.2"
46
+ "@baeta/generator-sdk": "workspace:^",
47
+ "@baeta/plugin-exec": "workspace:^",
48
+ "@baeta/util-path": "workspace:^",
49
+ "execa": "^9.6.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@baeta/builder": "^0.0.0",
53
- "@baeta/tsconfig": "^0.0.0",
54
- "@types/node": "^22.13.10",
55
- "typescript": "^5.8.2"
52
+ "@baeta/builder": "workspace:^",
53
+ "@baeta/tsconfig": "workspace:^",
54
+ "@types/node": "^22.18.11",
55
+ "typescript": "^5.9.3"
56
56
  },
57
57
  "engines": {
58
- "node": ">=22.12.0"
58
+ "node": ">=22.20.0"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public",
@@ -66,15 +66,6 @@
66
66
  }
67
67
  }
68
68
  },
69
- "ava": {
70
- "extensions": {
71
- "ts": "module"
72
- },
73
- "nodeArguments": [
74
- "--no-warnings",
75
- "--experimental-transform-types"
76
- ]
77
- },
78
69
  "typedocOptions": {
79
70
  "entryPoints": [
80
71
  "./index.ts"
@@ -88,4 +79,4 @@
88
79
  "alphabetical-ignoring-documents"
89
80
  ]
90
81
  }
91
- }
82
+ }
package/CHANGELOG.md DELETED
@@ -1,227 +0,0 @@
1
- # @baeta/plugin-prisma
2
-
3
- ## 1.0.9
4
-
5
- ### Patch Changes
6
-
7
- - [`583014f`](https://github.com/andreisergiu98/baeta/commit/583014f0bac810b25d9a8226bda2df4c9039f5e3) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update dependencies
8
-
9
- - Updated dependencies [[`583014f`](https://github.com/andreisergiu98/baeta/commit/583014f0bac810b25d9a8226bda2df4c9039f5e3)]:
10
- - @baeta/generator-sdk@1.0.1
11
- - @baeta/plugin-exec@1.0.9
12
- - @baeta/util-path@1.0.1
13
-
14
- ## 1.0.8
15
-
16
- ### Patch Changes
17
-
18
- - [#189](https://github.com/andreisergiu98/baeta/pull/189) [`d500378`](https://github.com/andreisergiu98/baeta/commit/d500378198e0a9c48298c4242913bca8ad348228) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add jsdocs
19
-
20
- - [#165](https://github.com/andreisergiu98/baeta/pull/165) [`1334c2a`](https://github.com/andreisergiu98/baeta/commit/1334c2a866676c88f0f3d380b22133d81c4e98bc) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - mark as stable
21
-
22
- - Updated dependencies [[`d500378`](https://github.com/andreisergiu98/baeta/commit/d500378198e0a9c48298c4242913bca8ad348228), [`1334c2a`](https://github.com/andreisergiu98/baeta/commit/1334c2a866676c88f0f3d380b22133d81c4e98bc)]:
23
- - @baeta/generator-sdk@1.0.0
24
- - @baeta/plugin-exec@1.0.8
25
- - @baeta/util-path@1.0.0
26
-
27
- ## 0.1.5
28
-
29
- ### Patch Changes
30
-
31
- - Updated dependencies [[`bf2d1a3`](https://github.com/andreisergiu98/baeta/commit/bf2d1a326235e5f34e723a5acc81cd7b974b913b)]:
32
- - @baeta/generator-sdk@0.1.5
33
- - @baeta/plugin-exec@0.1.5
34
-
35
- ## 0.1.4
36
-
37
- ### Patch Changes
38
-
39
- - [`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add readme
40
-
41
- - Updated dependencies [[`b59db50`](https://github.com/andreisergiu98/baeta/commit/b59db501a83275ab2d964933080e688a3a5d8820)]:
42
- - @baeta/generator-sdk@0.1.4
43
- - @baeta/plugin-exec@0.1.4
44
- - @baeta/util-path@0.1.4
45
-
46
- ## 0.1.3
47
-
48
- ### Patch Changes
49
-
50
- - [#180](https://github.com/andreisergiu98/baeta/pull/180) [`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Raise minimum required NodeJS version to 22.12.0. Drop CommonJS builds in favor of the require_esm feature from NodeJS 22.12.0 onwards.
51
-
52
- - [#174](https://github.com/andreisergiu98/baeta/pull/174) [`3f2befb`](https://github.com/andreisergiu98/baeta/commit/3f2befbb4b645e2970727482e970c4e78f0ed598) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix skip generate
53
-
54
- - [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise es target to 2024
55
-
56
- - Updated dependencies [[`483c709`](https://github.com/andreisergiu98/baeta/commit/483c70932f815fd114732c00b74f9488d7924c72), [`de6e89c`](https://github.com/andreisergiu98/baeta/commit/de6e89c1b592e280967c73a4137d24ee56ef1857)]:
57
- - @baeta/generator-sdk@0.1.3
58
- - @baeta/plugin-exec@0.1.3
59
- - @baeta/util-path@0.1.3
60
-
61
- ## 0.1.2
62
-
63
- ### Patch Changes
64
-
65
- - [#170](https://github.com/andreisergiu98/baeta/pull/170) [`59bbb9c`](https://github.com/andreisergiu98/baeta/commit/59bbb9c4baaf716f27dc251fe7aeb0231e6c5321) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
66
-
67
- - Updated dependencies [[`e3fb6f8`](https://github.com/andreisergiu98/baeta/commit/e3fb6f877b4b20e248ad79cbaa3655cabe973f6b), [`59bbb9c`](https://github.com/andreisergiu98/baeta/commit/59bbb9c4baaf716f27dc251fe7aeb0231e6c5321)]:
68
- - @baeta/generator-sdk@0.1.2
69
- - @baeta/plugin-exec@0.1.2
70
- - @baeta/util-path@0.1.2
71
-
72
- ## 0.1.1
73
-
74
- ### Patch Changes
75
-
76
- - [`a3f0e5d`](https://github.com/andreisergiu98/baeta/commit/a3f0e5d03fc9ef21a87d3ec6bf264d0e9707636a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - fix exports order in package.json
77
-
78
- - [#161](https://github.com/andreisergiu98/baeta/pull/161) [`cca37dd`](https://github.com/andreisergiu98/baeta/commit/cca37dd7135a2852f1f6e287c46911306bdc8da0) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
79
-
80
- - [#162](https://github.com/andreisergiu98/baeta/pull/162) [`1c42409`](https://github.com/andreisergiu98/baeta/commit/1c424095518f47a057dd8b475c3c634eeb59bb92) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - make generated schema path required
81
-
82
- - Updated dependencies [[`7f1958c`](https://github.com/andreisergiu98/baeta/commit/7f1958c44d1b9bed473e48c875fdaa7020c434fa), [`b9638eb`](https://github.com/andreisergiu98/baeta/commit/b9638eb9fb713507efa9821b4f04cc7896a997b1), [`fd3a5d2`](https://github.com/andreisergiu98/baeta/commit/fd3a5d27b497aca4b8807155e801b1c1197c5fe2), [`9d8d6a1`](https://github.com/andreisergiu98/baeta/commit/9d8d6a15d63579a2e0bdaa07b7efdcf10aff2492), [`a3f0e5d`](https://github.com/andreisergiu98/baeta/commit/a3f0e5d03fc9ef21a87d3ec6bf264d0e9707636a), [`cca37dd`](https://github.com/andreisergiu98/baeta/commit/cca37dd7135a2852f1f6e287c46911306bdc8da0)]:
83
- - @baeta/generator-sdk@0.1.1
84
- - @baeta/plugin-exec@0.1.1
85
- - @baeta/util-path@0.1.1
86
-
87
- ## 0.1.0
88
-
89
- ### Minor Changes
90
-
91
- - [#156](https://github.com/andreisergiu98/baeta/pull/156) [`01f3c20`](https://github.com/andreisergiu98/baeta/commit/01f3c20365539fad6e8a8694c59a8e86c95784e8) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - raise engine requirement to node >= 22
92
-
93
- ### Patch Changes
94
-
95
- - [#152](https://github.com/andreisergiu98/baeta/pull/152) [`d538c79`](https://github.com/andreisergiu98/baeta/commit/d538c7905e6ba96d9f294e2d528f9252e83acbe7) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update formatter
96
-
97
- - [#145](https://github.com/andreisergiu98/baeta/pull/145) [`08428d4`](https://github.com/andreisergiu98/baeta/commit/08428d4f03b79cab9c116ff7b3a3cf9a0b2620f2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
98
-
99
- - Updated dependencies [[`01f3c20`](https://github.com/andreisergiu98/baeta/commit/01f3c20365539fad6e8a8694c59a8e86c95784e8), [`d538c79`](https://github.com/andreisergiu98/baeta/commit/d538c7905e6ba96d9f294e2d528f9252e83acbe7), [`08428d4`](https://github.com/andreisergiu98/baeta/commit/08428d4f03b79cab9c116ff7b3a3cf9a0b2620f2)]:
100
- - @baeta/generator-sdk@0.1.0
101
- - @baeta/plugin-exec@0.1.0
102
- - @baeta/util-path@0.1.0
103
-
104
- ## 0.0.24
105
-
106
- ### Patch Changes
107
-
108
- - [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
109
-
110
- - [#139](https://github.com/andreisergiu98/baeta/pull/139) [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update typescript
111
-
112
- - Updated dependencies [[`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4), [`00dbc8f`](https://github.com/andreisergiu98/baeta/commit/00dbc8f35839aaa6524a6c0125ff38a766e45be4)]:
113
- - @baeta/generator-sdk@0.0.14
114
- - @baeta/plugin-exec@0.0.12
115
- - @baeta/util-path@0.0.6
116
-
117
- ## 0.0.23
118
-
119
- ### Patch Changes
120
-
121
- - [#128](https://github.com/andreisergiu98/baeta/pull/128) [`534917a`](https://github.com/andreisergiu98/baeta/commit/534917a18e7ed5d788a90a0335a5370d6af8f4a4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
122
-
123
- - Updated dependencies [[`534917a`](https://github.com/andreisergiu98/baeta/commit/534917a18e7ed5d788a90a0335a5370d6af8f4a4)]:
124
- - @baeta/generator-sdk@0.0.13
125
- - @baeta/plugin-exec@0.0.11
126
- - @baeta/util-path@0.0.5
127
-
128
- ## 0.0.22
129
-
130
- ### Patch Changes
131
-
132
- - [#121](https://github.com/andreisergiu98/baeta/pull/121) [`ceae50d`](https://github.com/andreisergiu98/baeta/commit/ceae50d88e4e59b22c603637620f4fc6b28b2454) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - Update Node to v20
133
-
134
- - Updated dependencies [[`ceae50d`](https://github.com/andreisergiu98/baeta/commit/ceae50d88e4e59b22c603637620f4fc6b28b2454), [`d94ee47`](https://github.com/andreisergiu98/baeta/commit/d94ee47bc485c541ff011290c4ac6ef0c145c83f)]:
135
- - @baeta/generator-sdk@0.0.12
136
- - @baeta/plugin-exec@0.0.10
137
- - @baeta/util-path@0.0.4
138
-
139
- ## 0.0.21
140
-
141
- ### Patch Changes
142
-
143
- - [#119](https://github.com/andreisergiu98/baeta/pull/119) [`643a2eb`](https://github.com/andreisergiu98/baeta/commit/643a2eb17c2789cd25361ddeede149a0e459e68a) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
144
-
145
- - Updated dependencies [[`18db339`](https://github.com/andreisergiu98/baeta/commit/18db339719aa309c619372d2161c5fdbc08fa316), [`643a2eb`](https://github.com/andreisergiu98/baeta/commit/643a2eb17c2789cd25361ddeede149a0e459e68a)]:
146
- - @baeta/generator-sdk@0.0.11
147
- - @baeta/plugin-exec@0.0.9
148
- - @baeta/util-path@0.0.3
149
-
150
- ## 0.0.20
151
-
152
- ### Patch Changes
153
-
154
- - [#102](https://github.com/andreisergiu98/baeta/pull/102) [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
155
-
156
- - [#102](https://github.com/andreisergiu98/baeta/pull/102) [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies and builder
157
-
158
- - [#106](https://github.com/andreisergiu98/baeta/pull/106) [`01788ab`](https://github.com/andreisergiu98/baeta/commit/01788ab04ff6956b2b50186af5bec8ed7ebbe76e) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - add compatibility with windows
159
-
160
- - Updated dependencies [[`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c), [`c9e37fd`](https://github.com/andreisergiu98/baeta/commit/c9e37fd1d64588fd8eb63facd7eda08c0009470c), [`01788ab`](https://github.com/andreisergiu98/baeta/commit/01788ab04ff6956b2b50186af5bec8ed7ebbe76e)]:
161
- - @baeta/generator-sdk@0.0.10
162
- - @baeta/plugin-exec@0.0.8
163
- - @baeta/util-path@0.0.2
164
-
165
- ## 0.0.19
166
-
167
- ### Patch Changes
168
-
169
- - [#69](https://github.com/andreisergiu98/baeta/pull/69) [`3cdd9b3`](https://github.com/andreisergiu98/baeta/commit/3cdd9b30369d21179769a4b8d5f76e326ae6db37) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
170
-
171
- - [#91](https://github.com/andreisergiu98/baeta/pull/91) [`e0944f6`](https://github.com/andreisergiu98/baeta/commit/e0944f6320e6cf2f0a3d2c9f51edd282bdce0546) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
172
-
173
- - Updated dependencies [[`3ff5e54`](https://github.com/andreisergiu98/baeta/commit/3ff5e54f31cf42ba2264b12309338d6e78710722), [`3cdd9b3`](https://github.com/andreisergiu98/baeta/commit/3cdd9b30369d21179769a4b8d5f76e326ae6db37), [`e0944f6`](https://github.com/andreisergiu98/baeta/commit/e0944f6320e6cf2f0a3d2c9f51edd282bdce0546)]:
174
- - @baeta/generator-sdk@0.0.9
175
- - @baeta/plugin-exec@0.0.7
176
-
177
- ## 0.0.18
178
-
179
- ### Patch Changes
180
-
181
- - [#66](https://github.com/andreisergiu98/baeta/pull/66) [`9a4a021`](https://github.com/andreisergiu98/baeta/commit/9a4a0214351b70295ce4f7eecaa8c49ab0e1325b) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - replace chokidar with @parcel/watcher
182
-
183
- - Updated dependencies [[`9a4a021`](https://github.com/andreisergiu98/baeta/commit/9a4a0214351b70295ce4f7eecaa8c49ab0e1325b)]:
184
- - @baeta/generator-sdk@0.0.8
185
- - @baeta/plugin-exec@0.0.6
186
-
187
- ## 0.0.17
188
-
189
- ### Patch Changes
190
-
191
- - Updated dependencies [[`6a2dd11`](https://github.com/andreisergiu98/baeta/commit/6a2dd110d6ffd2bff25d9c4501faebb052e0cd40)]:
192
- - @baeta/plugin-exec@0.0.5
193
- - @baeta/generator-sdk@0.0.7
194
-
195
- ## 0.0.16
196
-
197
- ### Patch Changes
198
-
199
- - [#47](https://github.com/andreisergiu98/baeta/pull/47) [`eb7096d`](https://github.com/andreisergiu98/baeta/commit/eb7096d42a53b17bae0a8365eccb795e7ded02e9) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - update dependencies
200
-
201
- - [#43](https://github.com/andreisergiu98/baeta/pull/43) [`670501b`](https://github.com/andreisergiu98/baeta/commit/670501b2b1cfb1126be3421293b8ccd597c6ffc2) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - bump dependencies
202
-
203
- - Updated dependencies [[`eb7096d`](https://github.com/andreisergiu98/baeta/commit/eb7096d42a53b17bae0a8365eccb795e7ded02e9), [`670501b`](https://github.com/andreisergiu98/baeta/commit/670501b2b1cfb1126be3421293b8ccd597c6ffc2)]:
204
- - @baeta/generator-sdk@0.0.6
205
- - @baeta/plugin-exec@0.0.4
206
-
207
- ## 0.0.15
208
-
209
- ### Patch Changes
210
-
211
- - [#40](https://github.com/andreisergiu98/baeta/pull/40) [`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - normalize config
212
-
213
- - Updated dependencies [[`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056), [`9f937f4`](https://github.com/andreisergiu98/baeta/commit/9f937f47d3464a082680047414ee13a76cf6c056)]:
214
- - @baeta/generator-sdk@0.0.5
215
- - @baeta/plugin-exec@0.0.3
216
-
217
- ## 0.0.14
218
-
219
- ### Patch Changes
220
-
221
- - [`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4) Thanks [@andreisergiu98](https://github.com/andreisergiu98)! - create cli sdk
222
- release prisma plugin
223
- update dependencies
224
- refactor generator plugins
225
- - Updated dependencies [[`d1190c1`](https://github.com/andreisergiu98/baeta/commit/d1190c10e3c259c73ddeeb73a4bd312b22bf2ea4)]:
226
- - @baeta/generator-sdk@0.0.4
227
- - @baeta/plugin-exec@0.0.2
package/dist/index.d.ts DELETED
@@ -1,39 +0,0 @@
1
- import * as _baeta_generator_sdk from '@baeta/generator-sdk';
2
-
3
- /**
4
- * Configuration options for the Prisma plugin
5
- */
6
- interface PrismaPluginOptions {
7
- /**
8
- * Whether to generate the Prisma client
9
- * @defaultValue true
10
- */
11
- generateClient?: boolean;
12
- /**
13
- * Custom command to generate Prisma client
14
- * @defaultValue 'prisma generate'
15
- */
16
- generateCommand?: string;
17
- /**
18
- * Path to the Prisma schema file
19
- * @example 'prisma/schema.prisma'
20
- */
21
- prismaSchema: string;
22
- /**
23
- * Path to the generated schema file for comparison
24
- * Used to avoid unnecessary regeneration
25
- * @example 'node_modules/@prisma/client/schema.prisma'
26
- */
27
- generatedSchemaPath: string;
28
- }
29
-
30
- /**
31
- * A plugin that manages Prisma client generation in your Baeta project.
32
- * See https://baeta.io/docs/plugins/prisma
33
- *
34
- * @param options - Configuration options for the pagination plugin
35
- * @returns A Baeta generator plugin
36
- */
37
- declare function prismaPlugin(options: PrismaPluginOptions): _baeta_generator_sdk.GeneratorPluginV1<unknown>[];
38
-
39
- export { type PrismaPluginOptions, prismaPlugin as default, prismaPlugin };