@baeta/plugin-prisma 2.0.0-next.1 → 2.0.0-next.2
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/CHANGELOG.md +11 -0
- package/dist/index.d.ts +39 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @baeta/plugin-prisma
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix broken types
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @baeta/generator-sdk@2.0.0-next.2
|
|
11
|
+
- @baeta/plugin-exec@2.0.0-next.2
|
|
12
|
+
- @baeta/util-path@2.0.0-next.2
|
|
13
|
+
|
|
3
14
|
## 2.0.0-next.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baeta/plugin-prisma",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"baeta",
|
|
6
6
|
"graphql",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"types": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@baeta/generator-sdk": "^2.0.0-next.
|
|
47
|
-
"@baeta/plugin-exec": "^2.0.0-next.
|
|
48
|
-
"@baeta/util-path": "^2.0.0-next.
|
|
46
|
+
"@baeta/generator-sdk": "^2.0.0-next.2",
|
|
47
|
+
"@baeta/plugin-exec": "^2.0.0-next.2",
|
|
48
|
+
"@baeta/util-path": "^2.0.0-next.2",
|
|
49
49
|
"execa": "^9.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|