@power-plant/prisma-input 0.0.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/LICENSE +201 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +332 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +332 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/input.cjs +2 -0
- package/dist/input.d.cts +17 -0
- package/dist/input.d.cts.map +1 -0
- package/dist/input.d.mts +17 -0
- package/dist/input.d.mts.map +1 -0
- package/dist/input.mjs +3 -0
- package/dist/input.mjs.map +1 -0
- package/dist/rolldown-runtime-CMqjfN_6.cjs +1 -0
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +12 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +1 -0
- package/dist/utilities.cjs +1 -0
- package/dist/utilities.d.cts +42 -0
- package/dist/utilities.d.cts.map +1 -0
- package/dist/utilities.d.mts +42 -0
- package/dist/utilities.d.mts.map +1 -0
- package/dist/utilities.mjs +2 -0
- package/dist/utilities.mjs.map +1 -0
- package/package.json +130 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./utilities.cjs"),n=require("./input.cjs");let r=require("@power-plant/core"),i=require("@power-plant/prisma-schema");i=e.t(i,1);var a=(0,r.defineInput)({meta:{name:`prisma-input`,description:"An input extension that reads Prisma schema (`.prisma`) files and converts them into a Prisma DMMF document using `@prisma/internals`.",usage:`Reads one or more Prisma schema files (or globs) configured via inputPath and returns the DMMF document.`,version:`1.0`,tags:[`prisma`,`dmmf`],links:[{href:`https://www.prisma.io`,description:`Prisma`},{href:`https://www.prisma.io/docs/orm/prisma-schema`,description:`Prisma Schema`},{href:`https://github.com/prisma/prisma`,description:`Prisma GitHub Repository`}]},schema:i.default,input:n.input});exports.default=a,exports.formatLoadError=t.formatLoadError,exports.input=n.input,exports.normalizeInputPaths=t.normalizeInputPaths,exports.toAbsolutePath=t.toAbsolutePath,exports.toFileUrl=t.toFileUrl,exports.toSchemaFiles=t.toSchemaFiles;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Options } from "./types.cjs";
|
|
2
|
+
import { input } from "./input.cjs";
|
|
3
|
+
import { formatLoadError, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles } from "./utilities.cjs";
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const _default: import("@power-plant/core").InputConfigObject<{
|
|
6
|
+
datamodel: {
|
|
7
|
+
models: {
|
|
8
|
+
name: string;
|
|
9
|
+
dbName: string | null;
|
|
10
|
+
schema: string | null;
|
|
11
|
+
fields: {
|
|
12
|
+
kind: "object" | "enum" | "scalar" | "unsupported";
|
|
13
|
+
name: string;
|
|
14
|
+
isRequired: boolean;
|
|
15
|
+
isList: boolean;
|
|
16
|
+
isUnique: boolean;
|
|
17
|
+
isId: boolean;
|
|
18
|
+
isReadOnly: boolean;
|
|
19
|
+
type: string;
|
|
20
|
+
hasDefaultValue: boolean;
|
|
21
|
+
isGenerated?: boolean | undefined;
|
|
22
|
+
isUpdatedAt?: boolean | undefined;
|
|
23
|
+
nativeType?: [string, string[]] | null | undefined;
|
|
24
|
+
dbName?: string | null | undefined;
|
|
25
|
+
default?: string | number | boolean | {
|
|
26
|
+
name: string;
|
|
27
|
+
args: unknown[];
|
|
28
|
+
} | (string | number | boolean)[] | undefined;
|
|
29
|
+
relationFromFields?: string[] | undefined;
|
|
30
|
+
relationToFields?: string[] | undefined;
|
|
31
|
+
relationOnDelete?: string | undefined;
|
|
32
|
+
relationOnUpdate?: string | undefined;
|
|
33
|
+
relationName?: string | undefined;
|
|
34
|
+
documentation?: string | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
uniqueFields: string[][];
|
|
37
|
+
uniqueIndexes: {
|
|
38
|
+
name: string;
|
|
39
|
+
fields: string[];
|
|
40
|
+
}[];
|
|
41
|
+
primaryKey: {
|
|
42
|
+
name: string | null;
|
|
43
|
+
fields: string[];
|
|
44
|
+
} | null;
|
|
45
|
+
documentation?: string | undefined;
|
|
46
|
+
isGenerated?: boolean | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
enums: {
|
|
49
|
+
name: string;
|
|
50
|
+
values: {
|
|
51
|
+
name: string;
|
|
52
|
+
dbName: string | null;
|
|
53
|
+
}[];
|
|
54
|
+
dbName?: string | null | undefined;
|
|
55
|
+
documentation?: string | undefined;
|
|
56
|
+
}[];
|
|
57
|
+
types: {
|
|
58
|
+
name: string;
|
|
59
|
+
dbName: string | null;
|
|
60
|
+
schema: string | null;
|
|
61
|
+
fields: {
|
|
62
|
+
kind: "object" | "enum" | "scalar" | "unsupported";
|
|
63
|
+
name: string;
|
|
64
|
+
isRequired: boolean;
|
|
65
|
+
isList: boolean;
|
|
66
|
+
isUnique: boolean;
|
|
67
|
+
isId: boolean;
|
|
68
|
+
isReadOnly: boolean;
|
|
69
|
+
type: string;
|
|
70
|
+
hasDefaultValue: boolean;
|
|
71
|
+
isGenerated?: boolean | undefined;
|
|
72
|
+
isUpdatedAt?: boolean | undefined;
|
|
73
|
+
nativeType?: [string, string[]] | null | undefined;
|
|
74
|
+
dbName?: string | null | undefined;
|
|
75
|
+
default?: string | number | boolean | (string | number | boolean)[] | {
|
|
76
|
+
name: string;
|
|
77
|
+
args: unknown[];
|
|
78
|
+
} | undefined;
|
|
79
|
+
relationFromFields?: string[] | undefined;
|
|
80
|
+
relationToFields?: string[] | undefined;
|
|
81
|
+
relationOnDelete?: string | undefined;
|
|
82
|
+
relationOnUpdate?: string | undefined;
|
|
83
|
+
relationName?: string | undefined;
|
|
84
|
+
documentation?: string | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
uniqueFields: string[][];
|
|
87
|
+
uniqueIndexes: {
|
|
88
|
+
name: string;
|
|
89
|
+
fields: string[];
|
|
90
|
+
}[];
|
|
91
|
+
primaryKey: {
|
|
92
|
+
name: string | null;
|
|
93
|
+
fields: string[];
|
|
94
|
+
} | null;
|
|
95
|
+
documentation?: string | undefined;
|
|
96
|
+
isGenerated?: boolean | undefined;
|
|
97
|
+
}[];
|
|
98
|
+
indexes: {
|
|
99
|
+
model: string;
|
|
100
|
+
type: "id" | "normal" | "unique" | "fulltext";
|
|
101
|
+
isDefinedOnField: boolean;
|
|
102
|
+
fields: {
|
|
103
|
+
name: string;
|
|
104
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
105
|
+
length?: number | undefined;
|
|
106
|
+
operatorClass?: string | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
dbName?: string | undefined;
|
|
110
|
+
algorithm?: string | undefined;
|
|
111
|
+
clustered?: boolean | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
schema: {
|
|
115
|
+
inputObjectTypes: {
|
|
116
|
+
model?: {
|
|
117
|
+
name: string;
|
|
118
|
+
constraints: {
|
|
119
|
+
maxNumFields: number | null;
|
|
120
|
+
minNumFields: number | null;
|
|
121
|
+
fields?: string[] | undefined;
|
|
122
|
+
};
|
|
123
|
+
fields: {
|
|
124
|
+
name: string;
|
|
125
|
+
isNullable: boolean;
|
|
126
|
+
isRequired: boolean;
|
|
127
|
+
inputTypes: {
|
|
128
|
+
isList: boolean;
|
|
129
|
+
type: string;
|
|
130
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
131
|
+
namespace?: "prisma" | "model" | undefined;
|
|
132
|
+
}[];
|
|
133
|
+
comment?: string | undefined;
|
|
134
|
+
isParameterizable?: boolean | undefined;
|
|
135
|
+
requiresOtherFields?: string[] | undefined;
|
|
136
|
+
deprecation?: {
|
|
137
|
+
sinceVersion: string;
|
|
138
|
+
reason: string;
|
|
139
|
+
plannedRemovalVersion?: string | undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
meta?: {
|
|
143
|
+
source?: string | undefined;
|
|
144
|
+
grouping?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
prisma?: {
|
|
148
|
+
name: string;
|
|
149
|
+
constraints: {
|
|
150
|
+
maxNumFields: number | null;
|
|
151
|
+
minNumFields: number | null;
|
|
152
|
+
fields?: string[] | undefined;
|
|
153
|
+
};
|
|
154
|
+
fields: {
|
|
155
|
+
name: string;
|
|
156
|
+
isNullable: boolean;
|
|
157
|
+
isRequired: boolean;
|
|
158
|
+
inputTypes: {
|
|
159
|
+
isList: boolean;
|
|
160
|
+
type: string;
|
|
161
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
162
|
+
namespace?: "prisma" | "model" | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
comment?: string | undefined;
|
|
165
|
+
isParameterizable?: boolean | undefined;
|
|
166
|
+
requiresOtherFields?: string[] | undefined;
|
|
167
|
+
deprecation?: {
|
|
168
|
+
sinceVersion: string;
|
|
169
|
+
reason: string;
|
|
170
|
+
plannedRemovalVersion?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
meta?: {
|
|
174
|
+
source?: string | undefined;
|
|
175
|
+
grouping?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
};
|
|
179
|
+
outputObjectTypes: {
|
|
180
|
+
model: {
|
|
181
|
+
name: string;
|
|
182
|
+
fields: {
|
|
183
|
+
name: string;
|
|
184
|
+
outputType: {
|
|
185
|
+
isList: boolean;
|
|
186
|
+
type: string;
|
|
187
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
188
|
+
namespace?: "prisma" | "model" | undefined;
|
|
189
|
+
};
|
|
190
|
+
args: {
|
|
191
|
+
name: string;
|
|
192
|
+
isNullable: boolean;
|
|
193
|
+
isRequired: boolean;
|
|
194
|
+
inputTypes: {
|
|
195
|
+
isList: boolean;
|
|
196
|
+
type: string;
|
|
197
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
198
|
+
namespace?: "prisma" | "model" | undefined;
|
|
199
|
+
}[];
|
|
200
|
+
comment?: string | undefined;
|
|
201
|
+
isParameterizable?: boolean | undefined;
|
|
202
|
+
requiresOtherFields?: string[] | undefined;
|
|
203
|
+
deprecation?: {
|
|
204
|
+
sinceVersion: string;
|
|
205
|
+
reason: string;
|
|
206
|
+
plannedRemovalVersion?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
isNullable?: boolean | undefined;
|
|
210
|
+
deprecation?: {
|
|
211
|
+
sinceVersion: string;
|
|
212
|
+
reason: string;
|
|
213
|
+
plannedRemovalVersion?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
documentation?: string | undefined;
|
|
216
|
+
}[];
|
|
217
|
+
}[];
|
|
218
|
+
prisma: {
|
|
219
|
+
name: string;
|
|
220
|
+
fields: {
|
|
221
|
+
name: string;
|
|
222
|
+
outputType: {
|
|
223
|
+
isList: boolean;
|
|
224
|
+
type: string;
|
|
225
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
226
|
+
namespace?: "prisma" | "model" | undefined;
|
|
227
|
+
};
|
|
228
|
+
args: {
|
|
229
|
+
name: string;
|
|
230
|
+
isNullable: boolean;
|
|
231
|
+
isRequired: boolean;
|
|
232
|
+
inputTypes: {
|
|
233
|
+
isList: boolean;
|
|
234
|
+
type: string;
|
|
235
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
236
|
+
namespace?: "prisma" | "model" | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
comment?: string | undefined;
|
|
239
|
+
isParameterizable?: boolean | undefined;
|
|
240
|
+
requiresOtherFields?: string[] | undefined;
|
|
241
|
+
deprecation?: {
|
|
242
|
+
sinceVersion: string;
|
|
243
|
+
reason: string;
|
|
244
|
+
plannedRemovalVersion?: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
}[];
|
|
247
|
+
isNullable?: boolean | undefined;
|
|
248
|
+
deprecation?: {
|
|
249
|
+
sinceVersion: string;
|
|
250
|
+
reason: string;
|
|
251
|
+
plannedRemovalVersion?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
documentation?: string | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
}[];
|
|
256
|
+
};
|
|
257
|
+
enumTypes: {
|
|
258
|
+
prisma: {
|
|
259
|
+
name: string;
|
|
260
|
+
values: string[];
|
|
261
|
+
}[];
|
|
262
|
+
model?: {
|
|
263
|
+
name: string;
|
|
264
|
+
values: string[];
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
};
|
|
267
|
+
fieldRefTypes: {
|
|
268
|
+
prisma?: {
|
|
269
|
+
name: string;
|
|
270
|
+
allowTypes: {
|
|
271
|
+
isList: boolean;
|
|
272
|
+
type: string;
|
|
273
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
274
|
+
namespace?: "prisma" | "model" | undefined;
|
|
275
|
+
}[];
|
|
276
|
+
fields: {
|
|
277
|
+
name: string;
|
|
278
|
+
isNullable: boolean;
|
|
279
|
+
isRequired: boolean;
|
|
280
|
+
inputTypes: {
|
|
281
|
+
isList: boolean;
|
|
282
|
+
type: string;
|
|
283
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
284
|
+
namespace?: "prisma" | "model" | undefined;
|
|
285
|
+
}[];
|
|
286
|
+
comment?: string | undefined;
|
|
287
|
+
isParameterizable?: boolean | undefined;
|
|
288
|
+
requiresOtherFields?: string[] | undefined;
|
|
289
|
+
deprecation?: {
|
|
290
|
+
sinceVersion: string;
|
|
291
|
+
reason: string;
|
|
292
|
+
plannedRemovalVersion?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
}[];
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
};
|
|
297
|
+
rootQueryType?: string | undefined;
|
|
298
|
+
rootMutationType?: string | undefined;
|
|
299
|
+
};
|
|
300
|
+
mappings: {
|
|
301
|
+
modelOperations: {
|
|
302
|
+
model: string;
|
|
303
|
+
plural?: string | undefined;
|
|
304
|
+
findUnique?: string | null | undefined;
|
|
305
|
+
findUniqueOrThrow?: string | null | undefined;
|
|
306
|
+
findFirst?: string | null | undefined;
|
|
307
|
+
findFirstOrThrow?: string | null | undefined;
|
|
308
|
+
findMany?: string | null | undefined;
|
|
309
|
+
create?: string | null | undefined;
|
|
310
|
+
createMany?: string | null | undefined;
|
|
311
|
+
createManyAndReturn?: string | null | undefined;
|
|
312
|
+
update?: string | null | undefined;
|
|
313
|
+
updateMany?: string | null | undefined;
|
|
314
|
+
updateManyAndReturn?: string | null | undefined;
|
|
315
|
+
upsert?: string | null | undefined;
|
|
316
|
+
delete?: string | null | undefined;
|
|
317
|
+
deleteMany?: string | null | undefined;
|
|
318
|
+
aggregate?: string | null | undefined;
|
|
319
|
+
groupBy?: string | null | undefined;
|
|
320
|
+
count?: string | null | undefined;
|
|
321
|
+
findRaw?: string | null | undefined;
|
|
322
|
+
aggregateRaw?: string | null | undefined;
|
|
323
|
+
}[];
|
|
324
|
+
otherOperations: {
|
|
325
|
+
read: string[];
|
|
326
|
+
write: string[];
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
}, Options>;
|
|
330
|
+
//#endregion
|
|
331
|
+
export { type Options, _default as default, formatLoadError, input, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles };
|
|
332
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":""}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { Options } from "./types.mjs";
|
|
2
|
+
import { input } from "./input.mjs";
|
|
3
|
+
import { formatLoadError, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles } from "./utilities.mjs";
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const _default: import("@power-plant/core").InputConfigObject<{
|
|
6
|
+
datamodel: {
|
|
7
|
+
models: {
|
|
8
|
+
name: string;
|
|
9
|
+
dbName: string | null;
|
|
10
|
+
schema: string | null;
|
|
11
|
+
fields: {
|
|
12
|
+
kind: "object" | "enum" | "scalar" | "unsupported";
|
|
13
|
+
name: string;
|
|
14
|
+
isRequired: boolean;
|
|
15
|
+
isList: boolean;
|
|
16
|
+
isUnique: boolean;
|
|
17
|
+
isId: boolean;
|
|
18
|
+
isReadOnly: boolean;
|
|
19
|
+
type: string;
|
|
20
|
+
hasDefaultValue: boolean;
|
|
21
|
+
isGenerated?: boolean | undefined;
|
|
22
|
+
isUpdatedAt?: boolean | undefined;
|
|
23
|
+
nativeType?: [string, string[]] | null | undefined;
|
|
24
|
+
dbName?: string | null | undefined;
|
|
25
|
+
default?: string | number | boolean | {
|
|
26
|
+
name: string;
|
|
27
|
+
args: unknown[];
|
|
28
|
+
} | (string | number | boolean)[] | undefined;
|
|
29
|
+
relationFromFields?: string[] | undefined;
|
|
30
|
+
relationToFields?: string[] | undefined;
|
|
31
|
+
relationOnDelete?: string | undefined;
|
|
32
|
+
relationOnUpdate?: string | undefined;
|
|
33
|
+
relationName?: string | undefined;
|
|
34
|
+
documentation?: string | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
uniqueFields: string[][];
|
|
37
|
+
uniqueIndexes: {
|
|
38
|
+
name: string;
|
|
39
|
+
fields: string[];
|
|
40
|
+
}[];
|
|
41
|
+
primaryKey: {
|
|
42
|
+
name: string | null;
|
|
43
|
+
fields: string[];
|
|
44
|
+
} | null;
|
|
45
|
+
documentation?: string | undefined;
|
|
46
|
+
isGenerated?: boolean | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
enums: {
|
|
49
|
+
name: string;
|
|
50
|
+
values: {
|
|
51
|
+
name: string;
|
|
52
|
+
dbName: string | null;
|
|
53
|
+
}[];
|
|
54
|
+
dbName?: string | null | undefined;
|
|
55
|
+
documentation?: string | undefined;
|
|
56
|
+
}[];
|
|
57
|
+
types: {
|
|
58
|
+
name: string;
|
|
59
|
+
dbName: string | null;
|
|
60
|
+
schema: string | null;
|
|
61
|
+
fields: {
|
|
62
|
+
kind: "object" | "enum" | "scalar" | "unsupported";
|
|
63
|
+
name: string;
|
|
64
|
+
isRequired: boolean;
|
|
65
|
+
isList: boolean;
|
|
66
|
+
isUnique: boolean;
|
|
67
|
+
isId: boolean;
|
|
68
|
+
isReadOnly: boolean;
|
|
69
|
+
type: string;
|
|
70
|
+
hasDefaultValue: boolean;
|
|
71
|
+
isGenerated?: boolean | undefined;
|
|
72
|
+
isUpdatedAt?: boolean | undefined;
|
|
73
|
+
nativeType?: [string, string[]] | null | undefined;
|
|
74
|
+
dbName?: string | null | undefined;
|
|
75
|
+
default?: string | number | boolean | (string | number | boolean)[] | {
|
|
76
|
+
name: string;
|
|
77
|
+
args: unknown[];
|
|
78
|
+
} | undefined;
|
|
79
|
+
relationFromFields?: string[] | undefined;
|
|
80
|
+
relationToFields?: string[] | undefined;
|
|
81
|
+
relationOnDelete?: string | undefined;
|
|
82
|
+
relationOnUpdate?: string | undefined;
|
|
83
|
+
relationName?: string | undefined;
|
|
84
|
+
documentation?: string | undefined;
|
|
85
|
+
}[];
|
|
86
|
+
uniqueFields: string[][];
|
|
87
|
+
uniqueIndexes: {
|
|
88
|
+
name: string;
|
|
89
|
+
fields: string[];
|
|
90
|
+
}[];
|
|
91
|
+
primaryKey: {
|
|
92
|
+
name: string | null;
|
|
93
|
+
fields: string[];
|
|
94
|
+
} | null;
|
|
95
|
+
documentation?: string | undefined;
|
|
96
|
+
isGenerated?: boolean | undefined;
|
|
97
|
+
}[];
|
|
98
|
+
indexes: {
|
|
99
|
+
model: string;
|
|
100
|
+
type: "id" | "normal" | "unique" | "fulltext";
|
|
101
|
+
isDefinedOnField: boolean;
|
|
102
|
+
fields: {
|
|
103
|
+
name: string;
|
|
104
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
105
|
+
length?: number | undefined;
|
|
106
|
+
operatorClass?: string | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
dbName?: string | undefined;
|
|
110
|
+
algorithm?: string | undefined;
|
|
111
|
+
clustered?: boolean | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
schema: {
|
|
115
|
+
inputObjectTypes: {
|
|
116
|
+
model?: {
|
|
117
|
+
name: string;
|
|
118
|
+
constraints: {
|
|
119
|
+
maxNumFields: number | null;
|
|
120
|
+
minNumFields: number | null;
|
|
121
|
+
fields?: string[] | undefined;
|
|
122
|
+
};
|
|
123
|
+
fields: {
|
|
124
|
+
name: string;
|
|
125
|
+
isNullable: boolean;
|
|
126
|
+
isRequired: boolean;
|
|
127
|
+
inputTypes: {
|
|
128
|
+
isList: boolean;
|
|
129
|
+
type: string;
|
|
130
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
131
|
+
namespace?: "prisma" | "model" | undefined;
|
|
132
|
+
}[];
|
|
133
|
+
comment?: string | undefined;
|
|
134
|
+
isParameterizable?: boolean | undefined;
|
|
135
|
+
requiresOtherFields?: string[] | undefined;
|
|
136
|
+
deprecation?: {
|
|
137
|
+
sinceVersion: string;
|
|
138
|
+
reason: string;
|
|
139
|
+
plannedRemovalVersion?: string | undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}[];
|
|
142
|
+
meta?: {
|
|
143
|
+
source?: string | undefined;
|
|
144
|
+
grouping?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
prisma?: {
|
|
148
|
+
name: string;
|
|
149
|
+
constraints: {
|
|
150
|
+
maxNumFields: number | null;
|
|
151
|
+
minNumFields: number | null;
|
|
152
|
+
fields?: string[] | undefined;
|
|
153
|
+
};
|
|
154
|
+
fields: {
|
|
155
|
+
name: string;
|
|
156
|
+
isNullable: boolean;
|
|
157
|
+
isRequired: boolean;
|
|
158
|
+
inputTypes: {
|
|
159
|
+
isList: boolean;
|
|
160
|
+
type: string;
|
|
161
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
162
|
+
namespace?: "prisma" | "model" | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
comment?: string | undefined;
|
|
165
|
+
isParameterizable?: boolean | undefined;
|
|
166
|
+
requiresOtherFields?: string[] | undefined;
|
|
167
|
+
deprecation?: {
|
|
168
|
+
sinceVersion: string;
|
|
169
|
+
reason: string;
|
|
170
|
+
plannedRemovalVersion?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
meta?: {
|
|
174
|
+
source?: string | undefined;
|
|
175
|
+
grouping?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
};
|
|
179
|
+
outputObjectTypes: {
|
|
180
|
+
model: {
|
|
181
|
+
name: string;
|
|
182
|
+
fields: {
|
|
183
|
+
name: string;
|
|
184
|
+
outputType: {
|
|
185
|
+
isList: boolean;
|
|
186
|
+
type: string;
|
|
187
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
188
|
+
namespace?: "prisma" | "model" | undefined;
|
|
189
|
+
};
|
|
190
|
+
args: {
|
|
191
|
+
name: string;
|
|
192
|
+
isNullable: boolean;
|
|
193
|
+
isRequired: boolean;
|
|
194
|
+
inputTypes: {
|
|
195
|
+
isList: boolean;
|
|
196
|
+
type: string;
|
|
197
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
198
|
+
namespace?: "prisma" | "model" | undefined;
|
|
199
|
+
}[];
|
|
200
|
+
comment?: string | undefined;
|
|
201
|
+
isParameterizable?: boolean | undefined;
|
|
202
|
+
requiresOtherFields?: string[] | undefined;
|
|
203
|
+
deprecation?: {
|
|
204
|
+
sinceVersion: string;
|
|
205
|
+
reason: string;
|
|
206
|
+
plannedRemovalVersion?: string | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
}[];
|
|
209
|
+
isNullable?: boolean | undefined;
|
|
210
|
+
deprecation?: {
|
|
211
|
+
sinceVersion: string;
|
|
212
|
+
reason: string;
|
|
213
|
+
plannedRemovalVersion?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
documentation?: string | undefined;
|
|
216
|
+
}[];
|
|
217
|
+
}[];
|
|
218
|
+
prisma: {
|
|
219
|
+
name: string;
|
|
220
|
+
fields: {
|
|
221
|
+
name: string;
|
|
222
|
+
outputType: {
|
|
223
|
+
isList: boolean;
|
|
224
|
+
type: string;
|
|
225
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
226
|
+
namespace?: "prisma" | "model" | undefined;
|
|
227
|
+
};
|
|
228
|
+
args: {
|
|
229
|
+
name: string;
|
|
230
|
+
isNullable: boolean;
|
|
231
|
+
isRequired: boolean;
|
|
232
|
+
inputTypes: {
|
|
233
|
+
isList: boolean;
|
|
234
|
+
type: string;
|
|
235
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
236
|
+
namespace?: "prisma" | "model" | undefined;
|
|
237
|
+
}[];
|
|
238
|
+
comment?: string | undefined;
|
|
239
|
+
isParameterizable?: boolean | undefined;
|
|
240
|
+
requiresOtherFields?: string[] | undefined;
|
|
241
|
+
deprecation?: {
|
|
242
|
+
sinceVersion: string;
|
|
243
|
+
reason: string;
|
|
244
|
+
plannedRemovalVersion?: string | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
}[];
|
|
247
|
+
isNullable?: boolean | undefined;
|
|
248
|
+
deprecation?: {
|
|
249
|
+
sinceVersion: string;
|
|
250
|
+
reason: string;
|
|
251
|
+
plannedRemovalVersion?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
documentation?: string | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
}[];
|
|
256
|
+
};
|
|
257
|
+
enumTypes: {
|
|
258
|
+
prisma: {
|
|
259
|
+
name: string;
|
|
260
|
+
values: string[];
|
|
261
|
+
}[];
|
|
262
|
+
model?: {
|
|
263
|
+
name: string;
|
|
264
|
+
values: string[];
|
|
265
|
+
}[] | undefined;
|
|
266
|
+
};
|
|
267
|
+
fieldRefTypes: {
|
|
268
|
+
prisma?: {
|
|
269
|
+
name: string;
|
|
270
|
+
allowTypes: {
|
|
271
|
+
isList: boolean;
|
|
272
|
+
type: string;
|
|
273
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
274
|
+
namespace?: "prisma" | "model" | undefined;
|
|
275
|
+
}[];
|
|
276
|
+
fields: {
|
|
277
|
+
name: string;
|
|
278
|
+
isNullable: boolean;
|
|
279
|
+
isRequired: boolean;
|
|
280
|
+
inputTypes: {
|
|
281
|
+
isList: boolean;
|
|
282
|
+
type: string;
|
|
283
|
+
location: "inputObjectTypes" | "outputObjectTypes" | "enumTypes" | "fieldRefTypes" | "scalar";
|
|
284
|
+
namespace?: "prisma" | "model" | undefined;
|
|
285
|
+
}[];
|
|
286
|
+
comment?: string | undefined;
|
|
287
|
+
isParameterizable?: boolean | undefined;
|
|
288
|
+
requiresOtherFields?: string[] | undefined;
|
|
289
|
+
deprecation?: {
|
|
290
|
+
sinceVersion: string;
|
|
291
|
+
reason: string;
|
|
292
|
+
plannedRemovalVersion?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
}[];
|
|
295
|
+
}[] | undefined;
|
|
296
|
+
};
|
|
297
|
+
rootQueryType?: string | undefined;
|
|
298
|
+
rootMutationType?: string | undefined;
|
|
299
|
+
};
|
|
300
|
+
mappings: {
|
|
301
|
+
modelOperations: {
|
|
302
|
+
model: string;
|
|
303
|
+
plural?: string | undefined;
|
|
304
|
+
findUnique?: string | null | undefined;
|
|
305
|
+
findUniqueOrThrow?: string | null | undefined;
|
|
306
|
+
findFirst?: string | null | undefined;
|
|
307
|
+
findFirstOrThrow?: string | null | undefined;
|
|
308
|
+
findMany?: string | null | undefined;
|
|
309
|
+
create?: string | null | undefined;
|
|
310
|
+
createMany?: string | null | undefined;
|
|
311
|
+
createManyAndReturn?: string | null | undefined;
|
|
312
|
+
update?: string | null | undefined;
|
|
313
|
+
updateMany?: string | null | undefined;
|
|
314
|
+
updateManyAndReturn?: string | null | undefined;
|
|
315
|
+
upsert?: string | null | undefined;
|
|
316
|
+
delete?: string | null | undefined;
|
|
317
|
+
deleteMany?: string | null | undefined;
|
|
318
|
+
aggregate?: string | null | undefined;
|
|
319
|
+
groupBy?: string | null | undefined;
|
|
320
|
+
count?: string | null | undefined;
|
|
321
|
+
findRaw?: string | null | undefined;
|
|
322
|
+
aggregateRaw?: string | null | undefined;
|
|
323
|
+
}[];
|
|
324
|
+
otherOperations: {
|
|
325
|
+
read: string[];
|
|
326
|
+
write: string[];
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
}, Options>;
|
|
330
|
+
//#endregion
|
|
331
|
+
export { type Options, _default as default, formatLoadError, input, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles };
|
|
332
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":""}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{formatLoadError as e,normalizeInputPaths as t,toAbsolutePath as n,toFileUrl as r,toSchemaFiles as i}from"./utilities.mjs";import{input as a}from"./input.mjs";import{defineInput as o}from"@power-plant/core";import s from"@power-plant/prisma-schema";var c=o({meta:{name:`prisma-input`,description:"An input extension that reads Prisma schema (`.prisma`) files and converts them into a Prisma DMMF document using `@prisma/internals`.",usage:`Reads one or more Prisma schema files (or globs) configured via inputPath and returns the DMMF document.`,version:`1.0`,tags:[`prisma`,`dmmf`],links:[{href:`https://www.prisma.io`,description:`Prisma`},{href:`https://www.prisma.io/docs/orm/prisma-schema`,description:`Prisma Schema`},{href:`https://github.com/prisma/prisma`,description:`Prisma GitHub Repository`}]},schema:s,input:a});export{c as default,e as formatLoadError,a as input,t as normalizeInputPaths,n as toAbsolutePath,r as toFileUrl,i as toSchemaFiles};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/input.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-CMqjfN_6.cjs"),t=require("./utilities.cjs");let n=require("@stryke/convert/to-array"),r=require("node:path"),i=require("@power-plant/core"),a=require("@prisma/internals");a=e.t(a,1);let o=require("@stryke/path/join-paths"),s=require("node:fs/promises");const{getDMMF:c}=a.default;async function l(e,n){let i=t.toAbsolutePath(e,n);if(i.includes(`*`)||i.includes(`?`)){let e=[];for await(let t of(0,s.glob)(i))t.endsWith(`.prisma`)&&e.push((0,r.isAbsolute)(t)?t:(0,r.resolve)(n,t));return e}let a=await(0,s.stat)(i);if(a.isFile())return[i];if(a.isDirectory()){let e=await(0,s.readdir)(i,{withFileTypes:!0}),t=[];for(let r of e){let e=(0,o.joinPaths)(i,r.name);r.isFile()&&r.name.endsWith(`.prisma`)?t.push(e):r.isDirectory()&&r.name!==`node_modules`&&t.push(...await l(e,n))}return t}return[]}async function u(e){let{inputPath:r}=e,{cwd:a}=(0,i.useExecution)();try{let e=t.normalizeInputPaths(r),i=(await Promise.all(e.map(async e=>l(e,a)))).flat(),o=[...new Set(i)];if(o.length===0)throw Error(`No Prisma schema files found for inputPath: ${(0,n.toArray)(r).map(String).join(`, `)}`);let u=new Map;await Promise.all(o.map(async e=>{u.set(e,await(0,s.readFile)(e,`utf8`))}));let d=t.toSchemaFiles(o,u);return await c({datamodel:d})}catch(e){throw Error([`Failed to load Prisma schema from ${(0,n.toArray)(r).map(String).join(`, `)}:`,t.formatLoadError(e),``,`Supported schema sources include:`,"- Local `.prisma` files","- Directories containing `.prisma` files","- Glob expressions matching `.prisma` files"].join(`
|
|
2
|
+
`))}}exports.input=u;
|
package/dist/input.d.cts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Options } from "./types.cjs";
|
|
2
|
+
import { PrismaSchema } from "@power-plant/prisma-schema";
|
|
3
|
+
//#region src/input.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Loads Prisma schema files and converts them into a DMMF document via
|
|
6
|
+
* `@prisma/internals` `getDMMF`.
|
|
7
|
+
*
|
|
8
|
+
* @see https://www.prisma.io/docs/orm/prisma-schema
|
|
9
|
+
* @see https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-prisma/src/index.ts
|
|
10
|
+
*
|
|
11
|
+
* @param options - The options for the input.
|
|
12
|
+
* @returns A validated {@link PrismaSchema} DMMF document.
|
|
13
|
+
*/
|
|
14
|
+
declare function input(options: Options): Promise<PrismaSchema>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { input };
|
|
17
|
+
//# sourceMappingURL=input.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.cts","names":[],"sources":["../src/input.ts"],"mappings":";;;;;;;;;;;;;iBAuFsB,MAAM,SAAS,UAAU,QAAQ"}
|
package/dist/input.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Options } from "./types.mjs";
|
|
2
|
+
import { PrismaSchema } from "@power-plant/prisma-schema";
|
|
3
|
+
//#region src/input.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Loads Prisma schema files and converts them into a DMMF document via
|
|
6
|
+
* `@prisma/internals` `getDMMF`.
|
|
7
|
+
*
|
|
8
|
+
* @see https://www.prisma.io/docs/orm/prisma-schema
|
|
9
|
+
* @see https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-prisma/src/index.ts
|
|
10
|
+
*
|
|
11
|
+
* @param options - The options for the input.
|
|
12
|
+
* @returns A validated {@link PrismaSchema} DMMF document.
|
|
13
|
+
*/
|
|
14
|
+
declare function input(options: Options): Promise<PrismaSchema>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { input };
|
|
17
|
+
//# sourceMappingURL=input.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.mts","names":[],"sources":["../src/input.ts"],"mappings":""}
|
package/dist/input.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{formatLoadError as e,normalizeInputPaths as t,toAbsolutePath as n,toSchemaFiles as r}from"./utilities.mjs";import{toArray as i}from"@stryke/convert/to-array";import{isAbsolute as a,resolve as o}from"node:path";import{useExecution as s}from"@power-plant/core";import c from"@prisma/internals";import{joinPaths as l}from"@stryke/path/join-paths";import{glob as u,readFile as d,readdir as f,stat as p}from"node:fs/promises";const{getDMMF:m}=c;async function h(e,t){let r=n(e,t);if(r.includes(`*`)||r.includes(`?`)){let e=[];for await(let n of u(r))n.endsWith(`.prisma`)&&e.push(a(n)?n:o(t,n));return e}let i=await p(r);if(i.isFile())return[r];if(i.isDirectory()){let e=await f(r,{withFileTypes:!0}),n=[];for(let i of e){let e=l(r,i.name);i.isFile()&&i.name.endsWith(`.prisma`)?n.push(e):i.isDirectory()&&i.name!==`node_modules`&&n.push(...await h(e,t))}return n}return[]}async function g(n){let{inputPath:a}=n,{cwd:o}=s();try{let e=t(a),n=(await Promise.all(e.map(async e=>h(e,o)))).flat(),s=[...new Set(n)];if(s.length===0)throw Error(`No Prisma schema files found for inputPath: ${i(a).map(String).join(`, `)}`);let c=new Map;await Promise.all(s.map(async e=>{c.set(e,await d(e,`utf8`))}));let l=r(s,c);return await m({datamodel:l})}catch(t){throw Error([`Failed to load Prisma schema from ${i(a).map(String).join(`, `)}:`,e(t),``,`Supported schema sources include:`,"- Local `.prisma` files","- Directories containing `.prisma` files","- Glob expressions matching `.prisma` files"].join(`
|
|
2
|
+
`))}}export{g as input};
|
|
3
|
+
//# sourceMappingURL=input.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
|
package/dist/types.cjs
ADDED
|
File without changes
|
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoadReference } from "@stryke/resolve/types";
|
|
2
|
+
import { Arrayable } from "@stryke/types/array";
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
interface Options {
|
|
5
|
+
/**
|
|
6
|
+
* Pointer to one or more Prisma schema sources (`.prisma` files or globs).
|
|
7
|
+
*/
|
|
8
|
+
inputPath: Arrayable<LoadReference>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Options };
|
|
12
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;;UAqBiB;;;;EAIf,WAAW,UAAU"}
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoadReference } from "@stryke/resolve/types";
|
|
2
|
+
import { Arrayable } from "@stryke/types/array";
|
|
3
|
+
//#region src/types.d.ts
|
|
4
|
+
interface Options {
|
|
5
|
+
/**
|
|
6
|
+
* Pointer to one or more Prisma schema sources (`.prisma` files or globs).
|
|
7
|
+
*/
|
|
8
|
+
inputPath: Arrayable<LoadReference>;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { Options };
|
|
12
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
|
package/dist/types.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@stryke/convert/to-array"),t=require("@stryke/type-checks/is-string"),n=require("node:path"),r=require("node:url");function i(e){return e instanceof Error?e.message:String(e)}function a(e,r){if(!(0,t.isString)(e))throw TypeError(`Unsupported Prisma schema reference: ${String(e)}. Expected a filesystem path string.`);return e.startsWith(`file:`)?new URL(e).pathname:(0,n.isAbsolute)(e)?e:(0,n.resolve)(r,e)}function o(e,t){return e.map(e=>{let n=t.get(e);if(n==null)throw Error(`Missing Prisma schema content for ${e}`);return[e,n]})}function s(e){return(0,r.pathToFileURL)(e).href}function c(n){return(0,e.toArray)(n).map(e=>{if(!(0,t.isString)(e))throw TypeError(`Unsupported Prisma schema reference: ${String(e)}. Expected a filesystem path string.`);return e})}exports.formatLoadError=i,exports.normalizeInputPaths=c,exports.toAbsolutePath=a,exports.toFileUrl=s,exports.toSchemaFiles=o;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LoadReference } from "@stryke/resolve/types";
|
|
2
|
+
//#region src/utilities.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Formats an unknown load/parse error into a readable message.
|
|
5
|
+
*
|
|
6
|
+
* @param error - The error thrown while loading Prisma schema files.
|
|
7
|
+
* @returns A human-readable error message.
|
|
8
|
+
*/
|
|
9
|
+
declare function formatLoadError(error: unknown): string;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves a load reference to an absolute filesystem path.
|
|
12
|
+
*
|
|
13
|
+
* @param reference - File path or URL-like reference.
|
|
14
|
+
* @param cwd - Working directory used for relative paths.
|
|
15
|
+
* @returns An absolute filesystem path.
|
|
16
|
+
*/
|
|
17
|
+
declare function toAbsolutePath(reference: LoadReference, cwd: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Converts schema file paths into Prisma `getDMMF` datamodel tuples.
|
|
20
|
+
*
|
|
21
|
+
* @param paths - Absolute paths to `.prisma` files.
|
|
22
|
+
* @param contents - File contents keyed by absolute path.
|
|
23
|
+
* @returns Schema file tuples for `@prisma/internals` `getDMMF`.
|
|
24
|
+
*/
|
|
25
|
+
declare function toSchemaFiles(paths: string[], contents: Map<string, string>): Array<[string, string]>;
|
|
26
|
+
/**
|
|
27
|
+
* Builds a `file:` URL for logging / debugging schema sources.
|
|
28
|
+
*
|
|
29
|
+
* @param path - Absolute filesystem path.
|
|
30
|
+
* @returns A `file:` URL string.
|
|
31
|
+
*/
|
|
32
|
+
declare function toFileUrl(path: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Flattens one or more load references into a string array.
|
|
35
|
+
*
|
|
36
|
+
* @param inputPath - Input path option value.
|
|
37
|
+
* @returns A list of string references.
|
|
38
|
+
*/
|
|
39
|
+
declare function normalizeInputPaths(inputPath: LoadReference | LoadReference[]): string[];
|
|
40
|
+
//#endregion
|
|
41
|
+
export { formatLoadError, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles };
|
|
42
|
+
//# sourceMappingURL=utilities.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.cts","names":[],"sources":["../src/utilities.ts"],"mappings":";;;;;;;;iBA8BgB,gBAAgB;;;;;;;;iBAehB,eAAe,WAAW,eAAe;;;;;;;;iBAqBzC,cACd,iBACA,UAAU,sBACT;;;;;;;iBAiBa,UAAU;;;;;;;iBAUV,oBACd,WAAW,gBAAgB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LoadReference } from "@stryke/resolve/types";
|
|
2
|
+
//#region src/utilities.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Formats an unknown load/parse error into a readable message.
|
|
5
|
+
*
|
|
6
|
+
* @param error - The error thrown while loading Prisma schema files.
|
|
7
|
+
* @returns A human-readable error message.
|
|
8
|
+
*/
|
|
9
|
+
declare function formatLoadError(error: unknown): string;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves a load reference to an absolute filesystem path.
|
|
12
|
+
*
|
|
13
|
+
* @param reference - File path or URL-like reference.
|
|
14
|
+
* @param cwd - Working directory used for relative paths.
|
|
15
|
+
* @returns An absolute filesystem path.
|
|
16
|
+
*/
|
|
17
|
+
declare function toAbsolutePath(reference: LoadReference, cwd: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Converts schema file paths into Prisma `getDMMF` datamodel tuples.
|
|
20
|
+
*
|
|
21
|
+
* @param paths - Absolute paths to `.prisma` files.
|
|
22
|
+
* @param contents - File contents keyed by absolute path.
|
|
23
|
+
* @returns Schema file tuples for `@prisma/internals` `getDMMF`.
|
|
24
|
+
*/
|
|
25
|
+
declare function toSchemaFiles(paths: string[], contents: Map<string, string>): Array<[string, string]>;
|
|
26
|
+
/**
|
|
27
|
+
* Builds a `file:` URL for logging / debugging schema sources.
|
|
28
|
+
*
|
|
29
|
+
* @param path - Absolute filesystem path.
|
|
30
|
+
* @returns A `file:` URL string.
|
|
31
|
+
*/
|
|
32
|
+
declare function toFileUrl(path: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Flattens one or more load references into a string array.
|
|
35
|
+
*
|
|
36
|
+
* @param inputPath - Input path option value.
|
|
37
|
+
* @returns A list of string references.
|
|
38
|
+
*/
|
|
39
|
+
declare function normalizeInputPaths(inputPath: LoadReference | LoadReference[]): string[];
|
|
40
|
+
//#endregion
|
|
41
|
+
export { formatLoadError, normalizeInputPaths, toAbsolutePath, toFileUrl, toSchemaFiles };
|
|
42
|
+
//# sourceMappingURL=utilities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.d.mts","names":[],"sources":["../src/utilities.ts"],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{toArray as e}from"@stryke/convert/to-array";import{isString as t}from"@stryke/type-checks/is-string";import{isAbsolute as n,resolve as r}from"node:path";import{pathToFileURL as i}from"node:url";function a(e){return e instanceof Error?e.message:String(e)}function o(e,i){if(!t(e))throw TypeError(`Unsupported Prisma schema reference: ${String(e)}. Expected a filesystem path string.`);return e.startsWith(`file:`)?new URL(e).pathname:n(e)?e:r(i,e)}function s(e,t){return e.map(e=>{let n=t.get(e);if(n==null)throw Error(`Missing Prisma schema content for ${e}`);return[e,n]})}function c(e){return i(e).href}function l(n){return e(n).map(e=>{if(!t(e))throw TypeError(`Unsupported Prisma schema reference: ${String(e)}. Expected a filesystem path string.`);return e})}export{a as formatLoadError,l as normalizeInputPaths,o as toAbsolutePath,c as toFileUrl,s as toSchemaFiles};
|
|
2
|
+
//# sourceMappingURL=utilities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.mjs","names":[],"sources":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@power-plant/prisma-input",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A Power Plant input for reading Prisma schema files into a DMMF document.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"prisma",
|
|
8
|
+
"dmmf",
|
|
9
|
+
"power-plant-input",
|
|
10
|
+
"power-plant",
|
|
11
|
+
"storm-software"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://stormsoftware.com",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://stormsoftware.com/support",
|
|
16
|
+
"email": "support@stormsoftware.com"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "github",
|
|
20
|
+
"url": "https://github.com/storm-software/power-plant.git",
|
|
21
|
+
"directory": "packages/inputs/prisma-input"
|
|
22
|
+
},
|
|
23
|
+
"funding": {
|
|
24
|
+
"type": "github",
|
|
25
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
26
|
+
},
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Storm Software",
|
|
30
|
+
"email": "contact@stormsoftware.com",
|
|
31
|
+
"url": "https://stormsoftware.com"
|
|
32
|
+
},
|
|
33
|
+
"maintainers": [
|
|
34
|
+
{
|
|
35
|
+
"name": "Storm Software",
|
|
36
|
+
"email": "contact@stormsoftware.com",
|
|
37
|
+
"url": "https://stormsoftware.com"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"contributors": [
|
|
41
|
+
{
|
|
42
|
+
"name": "Storm Software",
|
|
43
|
+
"email": "contact@stormsoftware.com",
|
|
44
|
+
"url": "https://stormsoftware.com"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"type": "module",
|
|
48
|
+
"exports": {
|
|
49
|
+
".": {
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/index.d.cts",
|
|
52
|
+
"default": "./dist/index.cjs"
|
|
53
|
+
},
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/index.d.mts",
|
|
56
|
+
"default": "./dist/index.mjs"
|
|
57
|
+
},
|
|
58
|
+
"default": {
|
|
59
|
+
"types": "./dist/index.d.mts",
|
|
60
|
+
"default": "./dist/index.mjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./input": {
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/input.d.cts",
|
|
66
|
+
"default": "./dist/input.cjs"
|
|
67
|
+
},
|
|
68
|
+
"import": {
|
|
69
|
+
"types": "./dist/input.d.mts",
|
|
70
|
+
"default": "./dist/input.mjs"
|
|
71
|
+
},
|
|
72
|
+
"default": {
|
|
73
|
+
"types": "./dist/input.d.mts",
|
|
74
|
+
"default": "./dist/input.mjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"./package.json": "./package.json",
|
|
78
|
+
"./types": {
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./dist/types.d.cts",
|
|
81
|
+
"default": "./dist/types.cjs"
|
|
82
|
+
},
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/types.d.mts",
|
|
85
|
+
"default": "./dist/types.mjs"
|
|
86
|
+
},
|
|
87
|
+
"default": {
|
|
88
|
+
"types": "./dist/types.d.mts",
|
|
89
|
+
"default": "./dist/types.mjs"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"./utilities": {
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/utilities.d.cts",
|
|
95
|
+
"default": "./dist/utilities.cjs"
|
|
96
|
+
},
|
|
97
|
+
"import": {
|
|
98
|
+
"types": "./dist/utilities.d.mts",
|
|
99
|
+
"default": "./dist/utilities.mjs"
|
|
100
|
+
},
|
|
101
|
+
"default": {
|
|
102
|
+
"types": "./dist/utilities.d.mts",
|
|
103
|
+
"default": "./dist/utilities.mjs"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"main": "./dist/index.cjs",
|
|
108
|
+
"module": "./dist/index.mjs",
|
|
109
|
+
"types": "./dist/index.d.cts",
|
|
110
|
+
"typings": "dist/index.d.mts",
|
|
111
|
+
"files": ["dist"],
|
|
112
|
+
"dependencies": {
|
|
113
|
+
"@power-plant/core": "^0.0.21",
|
|
114
|
+
"@power-plant/prisma-schema": "^0.0.1",
|
|
115
|
+
"@power-plant/schema": "^0.0.20",
|
|
116
|
+
"@prisma/internals": "^6.19.3",
|
|
117
|
+
"@stryke/convert": "^0.7.27",
|
|
118
|
+
"@stryke/path": "^0.29.23",
|
|
119
|
+
"@stryke/resolve": "^0.0.12",
|
|
120
|
+
"@stryke/type-checks": "^0.6.29",
|
|
121
|
+
"@stryke/types": "^0.12.24"
|
|
122
|
+
},
|
|
123
|
+
"devDependencies": {
|
|
124
|
+
"@powerlines/plugin-tsdown": "^0.1.545",
|
|
125
|
+
"@types/node": "^25.9.5",
|
|
126
|
+
"powerlines": "^0.47.144"
|
|
127
|
+
},
|
|
128
|
+
"publishConfig": { "access": "public" },
|
|
129
|
+
"gitHead": "463bd5515bf8deb2aca08f5222add9cf58bd4149"
|
|
130
|
+
}
|