@powerlines/plugin-prisma 0.4.29 → 0.4.31
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 +1 -1
- package/dist/client-generator-AkVOcQPr.mjs +146 -0
- package/dist/client-generator-B8dwKgp9.mjs +146 -0
- package/dist/client-generator-BAc2oiYI.cjs +152 -0
- package/dist/client-generator-Wdm31y35.cjs +152 -0
- package/dist/get-schema-Dq1-Jwvo.cjs +138 -0
- package/dist/helpers/client-generator.cjs +4 -0
- package/dist/helpers/client-generator.mjs +3 -0
- package/dist/helpers/get-schema.cjs +2 -80
- package/dist/helpers/get-schema.mjs +24 -4
- package/dist/helpers/index.cjs +6 -4
- package/dist/helpers/index.mjs +3 -2
- package/dist/helpers/schema-creator.cjs +1 -1
- package/dist/helpers/typed-sql.cjs +38 -0
- package/dist/helpers/typed-sql.mjs +36 -0
- package/dist/index.cjs +71 -45
- package/dist/index.mjs +68 -41
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.mjs +3 -0
- package/package.json +46 -235
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/_virtual/_rolldown/runtime.mjs +0 -3
- package/dist/api/client/client.gen.cjs +0 -176
- package/dist/api/client/client.gen.mjs +0 -175
- package/dist/api/client/index.cjs +0 -15
- package/dist/api/client/index.mjs +0 -7
- package/dist/api/client/types.gen.cjs +0 -0
- package/dist/api/client/types.gen.mjs +0 -1
- package/dist/api/client/utils.gen.cjs +0 -187
- package/dist/api/client/utils.gen.mjs +0 -179
- package/dist/api/client.gen.cjs +0 -10
- package/dist/api/client.gen.mjs +0 -9
- package/dist/api/core/auth.gen.cjs +0 -13
- package/dist/api/core/auth.gen.mjs +0 -11
- package/dist/api/core/bodySerializer.gen.cjs +0 -36
- package/dist/api/core/bodySerializer.gen.mjs +0 -32
- package/dist/api/core/params.gen.cjs +0 -66
- package/dist/api/core/params.gen.mjs +0 -64
- package/dist/api/core/pathSerializer.gen.cjs +0 -88
- package/dist/api/core/pathSerializer.gen.mjs +0 -81
- package/dist/api/core/queryKeySerializer.gen.cjs +0 -67
- package/dist/api/core/queryKeySerializer.gen.mjs +0 -63
- package/dist/api/core/serverSentEvents.gen.cjs +0 -96
- package/dist/api/core/serverSentEvents.gen.mjs +0 -94
- package/dist/api/core/types.gen.cjs +0 -0
- package/dist/api/core/types.gen.mjs +0 -1
- package/dist/api/core/utils.gen.cjs +0 -82
- package/dist/api/core/utils.gen.mjs +0 -78
- package/dist/api/sdk.gen.cjs +0 -405
- package/dist/api/sdk.gen.mjs +0 -404
- package/dist/api/types.gen.cjs +0 -0
- package/dist/api/types.gen.mjs +0 -1
- package/dist/helpers/prisma-postgres.cjs +0 -17
- package/dist/helpers/prisma-postgres.mjs +0 -15
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import { t as PowerlinesClientGenerator } from "./client-generator-AkVOcQPr.mjs";
|
|
1
2
|
import { getSchema } from "./helpers/get-schema.mjs";
|
|
2
3
|
import { PrismaSchemaCreator } from "./helpers/schema-creator.mjs";
|
|
4
|
+
import { introspectSql } from "./helpers/typed-sql.mjs";
|
|
5
|
+
import { defaultRegistry } from "@prisma/client-generator-registry";
|
|
6
|
+
import { enginesVersion } from "@prisma/engines";
|
|
7
|
+
import { extractPreviewFeatures, getDMMF, getGenerators, validatePrismaConfigWithDatasource } from "@prisma/internals";
|
|
3
8
|
import * as prismaPostgres from "@pulumi/prisma-postgres";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
9
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
10
|
+
import { appendPath } from "@stryke/path/append";
|
|
11
|
+
import { findBasePath } from "@stryke/path/common";
|
|
12
|
+
import { relativePath } from "@stryke/path/find";
|
|
6
13
|
import { joinPaths } from "@stryke/path/join-paths";
|
|
7
14
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
8
15
|
import { kebabCase } from "@stryke/string-format/kebab-case";
|
|
@@ -21,10 +28,11 @@ const plugin = (options = {}) => {
|
|
|
21
28
|
name: "prisma",
|
|
22
29
|
config() {
|
|
23
30
|
return { prisma: defu(options, {
|
|
24
|
-
schema: joinPaths(this.config.root, "prisma", "
|
|
31
|
+
schema: joinPaths(this.config.root, "prisma", "*.prisma"),
|
|
25
32
|
configFile: options.configFile || getConfigPath(this, "prisma.config"),
|
|
33
|
+
runtime: options.runtime || "nodejs",
|
|
26
34
|
outputPath: joinPaths("{builtinPath}", "prisma"),
|
|
27
|
-
prismaPostgres: options
|
|
35
|
+
prismaPostgres: options.prismaPostgres ? {
|
|
28
36
|
projectId: this.config.name,
|
|
29
37
|
region: "us-east-1"
|
|
30
38
|
} : void 0
|
|
@@ -34,53 +42,72 @@ const plugin = (options = {}) => {
|
|
|
34
42
|
this.dependencies["@prisma/ppg"] = "latest";
|
|
35
43
|
this.config.prisma.configFile = replacePathTokens(this, this.config.prisma.configFile);
|
|
36
44
|
if (!this.config.prisma.schema) throw new Error(`Prisma schema path is not defined. Please specify a valid path in the plugin configuration.`);
|
|
37
|
-
this.config.prisma.schema =
|
|
45
|
+
this.config.prisma.schema = toArray(this.config.prisma.schema).map((schemaPath) => replacePathTokens(this, schemaPath));
|
|
38
46
|
if (!this.config.prisma.outputPath) throw new Error(`Prisma generated path is not defined. Please specify a valid path in the plugin configuration.`);
|
|
39
47
|
this.config.prisma.outputPath = replacePathTokens(this, this.config.prisma.outputPath);
|
|
40
48
|
this.prisma ??= {};
|
|
41
|
-
|
|
49
|
+
this.prisma.config = validatePrismaConfigWithDatasource({
|
|
50
|
+
config: this.config.prisma,
|
|
51
|
+
cmd: "generate --sql"
|
|
52
|
+
});
|
|
53
|
+
const schemaRootDir = appendPath(appendPath(findBasePath(this.config.prisma.schema), this.config.root), this.workspaceConfig.workspaceRoot);
|
|
54
|
+
this.prisma.schema ??= {
|
|
55
|
+
schemaRootDir,
|
|
56
|
+
loadedFromPathForLogMessages: relativePath(this.config.root, schemaRootDir),
|
|
57
|
+
schemaPath: schemaRootDir,
|
|
58
|
+
schemas: [],
|
|
59
|
+
schemaFiles: [],
|
|
42
60
|
generators: [],
|
|
43
61
|
datasources: [],
|
|
44
|
-
warnings: []
|
|
45
|
-
|
|
46
|
-
else this.prisma.schema = await getSchema({ datamodel: this.config.prisma.schema });
|
|
47
|
-
const generator = this.prisma.schema.generators.find((gen) => gen.provider.value === "prisma-client");
|
|
48
|
-
if (!generator) this.prisma.schema.generators.push({
|
|
49
|
-
name: "prisma-client",
|
|
50
|
-
provider: {
|
|
51
|
-
value: "prisma-client",
|
|
52
|
-
fromEnvVar: null
|
|
53
|
-
},
|
|
54
|
-
output: {
|
|
55
|
-
value: this.config.prisma.outputPath,
|
|
56
|
-
fromEnvVar: null
|
|
57
|
-
},
|
|
58
|
-
config: {},
|
|
59
|
-
binaryTargets: [],
|
|
60
|
-
previewFeatures: [],
|
|
61
|
-
sourceFilePath: this.config.prisma.schema
|
|
62
|
-
});
|
|
63
|
-
else generator.output ??= {
|
|
64
|
-
value: this.config.prisma.outputPath,
|
|
65
|
-
fromEnvVar: null
|
|
62
|
+
warnings: [],
|
|
63
|
+
primaryDatasource: void 0
|
|
66
64
|
};
|
|
65
|
+
this.prisma.schema.schemas = await Promise.all((await this.fs.glob(this.config.prisma.schema.map((schema) => schema.includes("*") || this.fs.isFileSync(schema) ? schema : joinPaths(schema, "**/*.prisma")))).map(async (schema) => getSchema(schema)));
|
|
66
|
+
this.prisma.schema = this.prisma.schema.schemas.reduce((ret, schema) => {
|
|
67
|
+
ret.datasources.push(...schema.datasources);
|
|
68
|
+
ret.generators.push(...schema.generators);
|
|
69
|
+
ret.warnings.push(...schema.warnings);
|
|
70
|
+
ret.schemaFiles.push([schema.path, schema.content]);
|
|
71
|
+
return ret;
|
|
72
|
+
}, this.prisma.schema);
|
|
73
|
+
this.prisma.schema.primaryDatasource = this.prisma.schema.datasources.at(0);
|
|
74
|
+
this.prisma.schema.schemaPath = this.prisma.schema.schemas.at(0).path;
|
|
67
75
|
this.prisma.builder = new PrismaSchemaCreator(this);
|
|
68
76
|
},
|
|
69
77
|
async prepare() {
|
|
70
78
|
await this.prisma.builder.write();
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
this.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
this.prisma.previewFeatures = extractPreviewFeatures(this.prisma.schema.generators);
|
|
80
|
+
this.prisma.dmmf = await getDMMF({
|
|
81
|
+
datamodel: this.prisma.schema.schemaFiles,
|
|
82
|
+
previewFeatures: this.prisma.previewFeatures
|
|
83
|
+
});
|
|
84
|
+
const typedSql = await introspectSql(this);
|
|
85
|
+
let generators = await getGenerators({
|
|
86
|
+
schemaContext: this.prisma.schema,
|
|
87
|
+
printDownloadProgress: true,
|
|
88
|
+
version: enginesVersion,
|
|
89
|
+
typedSql,
|
|
90
|
+
allowNoModels: true,
|
|
91
|
+
registry: defaultRegistry.toInternal()
|
|
92
|
+
});
|
|
93
|
+
if (!generators || !generators.some((gen) => [
|
|
94
|
+
"prisma-client",
|
|
95
|
+
"prisma-client-js",
|
|
96
|
+
"prisma-client-ts"
|
|
97
|
+
].includes(gen.name || gen.getProvider()))) {
|
|
98
|
+
generators ??= [];
|
|
99
|
+
generators.push(new PowerlinesClientGenerator(this));
|
|
100
|
+
} else generators = generators.map((generator) => [
|
|
101
|
+
"prisma-client",
|
|
102
|
+
"prisma-client-js",
|
|
103
|
+
"prisma-client-ts"
|
|
104
|
+
].includes(generator.name || generator.getProvider()) ? new PowerlinesClientGenerator(this) : generator);
|
|
105
|
+
for (const generator of generators) try {
|
|
106
|
+
await generator.generate();
|
|
107
|
+
generator.stop();
|
|
108
|
+
} catch (err) {
|
|
109
|
+
generator.stop();
|
|
110
|
+
this.error(`Error while generating with ${generator.name || generator.getProvider()}: ${err instanceof Error ? err.message : String(err)}`);
|
|
84
111
|
}
|
|
85
112
|
},
|
|
86
113
|
async deployPulumi() {
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-prisma",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to generate project code and a Prisma client from a Prisma schema (PSL).",
|
|
6
6
|
"keywords": ["prisma", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -54,216 +54,6 @@
|
|
|
54
54
|
"default": "./dist/index.mjs"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
-
"./api/client": {
|
|
58
|
-
"require": {
|
|
59
|
-
"types": "./dist/api/client/index.d.cts",
|
|
60
|
-
"default": "./dist/api/client/index.cjs"
|
|
61
|
-
},
|
|
62
|
-
"import": {
|
|
63
|
-
"types": "./dist/api/client/index.d.mts",
|
|
64
|
-
"default": "./dist/api/client/index.mjs"
|
|
65
|
-
},
|
|
66
|
-
"default": {
|
|
67
|
-
"types": "./dist/api/client/index.d.mts",
|
|
68
|
-
"default": "./dist/api/client/index.mjs"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
"./api/client.gen": {
|
|
72
|
-
"require": {
|
|
73
|
-
"types": "./dist/api/client.gen.d.cts",
|
|
74
|
-
"default": "./dist/api/client.gen.cjs"
|
|
75
|
-
},
|
|
76
|
-
"import": {
|
|
77
|
-
"types": "./dist/api/client.gen.d.mts",
|
|
78
|
-
"default": "./dist/api/client.gen.mjs"
|
|
79
|
-
},
|
|
80
|
-
"default": {
|
|
81
|
-
"types": "./dist/api/client.gen.d.mts",
|
|
82
|
-
"default": "./dist/api/client.gen.mjs"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"./api/client/client.gen": {
|
|
86
|
-
"require": {
|
|
87
|
-
"types": "./dist/api/client/client.gen.d.cts",
|
|
88
|
-
"default": "./dist/api/client/client.gen.cjs"
|
|
89
|
-
},
|
|
90
|
-
"import": {
|
|
91
|
-
"types": "./dist/api/client/client.gen.d.mts",
|
|
92
|
-
"default": "./dist/api/client/client.gen.mjs"
|
|
93
|
-
},
|
|
94
|
-
"default": {
|
|
95
|
-
"types": "./dist/api/client/client.gen.d.mts",
|
|
96
|
-
"default": "./dist/api/client/client.gen.mjs"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"./api/client/types.gen": {
|
|
100
|
-
"require": {
|
|
101
|
-
"types": "./dist/api/client/types.gen.d.cts",
|
|
102
|
-
"default": "./dist/api/client/types.gen.cjs"
|
|
103
|
-
},
|
|
104
|
-
"import": {
|
|
105
|
-
"types": "./dist/api/client/types.gen.d.mts",
|
|
106
|
-
"default": "./dist/api/client/types.gen.mjs"
|
|
107
|
-
},
|
|
108
|
-
"default": {
|
|
109
|
-
"types": "./dist/api/client/types.gen.d.mts",
|
|
110
|
-
"default": "./dist/api/client/types.gen.mjs"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"./api/client/utils.gen": {
|
|
114
|
-
"require": {
|
|
115
|
-
"types": "./dist/api/client/utils.gen.d.cts",
|
|
116
|
-
"default": "./dist/api/client/utils.gen.cjs"
|
|
117
|
-
},
|
|
118
|
-
"import": {
|
|
119
|
-
"types": "./dist/api/client/utils.gen.d.mts",
|
|
120
|
-
"default": "./dist/api/client/utils.gen.mjs"
|
|
121
|
-
},
|
|
122
|
-
"default": {
|
|
123
|
-
"types": "./dist/api/client/utils.gen.d.mts",
|
|
124
|
-
"default": "./dist/api/client/utils.gen.mjs"
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
"./api/core/auth.gen": {
|
|
128
|
-
"require": {
|
|
129
|
-
"types": "./dist/api/core/auth.gen.d.cts",
|
|
130
|
-
"default": "./dist/api/core/auth.gen.cjs"
|
|
131
|
-
},
|
|
132
|
-
"import": {
|
|
133
|
-
"types": "./dist/api/core/auth.gen.d.mts",
|
|
134
|
-
"default": "./dist/api/core/auth.gen.mjs"
|
|
135
|
-
},
|
|
136
|
-
"default": {
|
|
137
|
-
"types": "./dist/api/core/auth.gen.d.mts",
|
|
138
|
-
"default": "./dist/api/core/auth.gen.mjs"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"./api/core/bodySerializer.gen": {
|
|
142
|
-
"require": {
|
|
143
|
-
"types": "./dist/api/core/bodySerializer.gen.d.cts",
|
|
144
|
-
"default": "./dist/api/core/bodySerializer.gen.cjs"
|
|
145
|
-
},
|
|
146
|
-
"import": {
|
|
147
|
-
"types": "./dist/api/core/bodySerializer.gen.d.mts",
|
|
148
|
-
"default": "./dist/api/core/bodySerializer.gen.mjs"
|
|
149
|
-
},
|
|
150
|
-
"default": {
|
|
151
|
-
"types": "./dist/api/core/bodySerializer.gen.d.mts",
|
|
152
|
-
"default": "./dist/api/core/bodySerializer.gen.mjs"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"./api/core/params.gen": {
|
|
156
|
-
"require": {
|
|
157
|
-
"types": "./dist/api/core/params.gen.d.cts",
|
|
158
|
-
"default": "./dist/api/core/params.gen.cjs"
|
|
159
|
-
},
|
|
160
|
-
"import": {
|
|
161
|
-
"types": "./dist/api/core/params.gen.d.mts",
|
|
162
|
-
"default": "./dist/api/core/params.gen.mjs"
|
|
163
|
-
},
|
|
164
|
-
"default": {
|
|
165
|
-
"types": "./dist/api/core/params.gen.d.mts",
|
|
166
|
-
"default": "./dist/api/core/params.gen.mjs"
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
"./api/core/pathSerializer.gen": {
|
|
170
|
-
"require": {
|
|
171
|
-
"types": "./dist/api/core/pathSerializer.gen.d.cts",
|
|
172
|
-
"default": "./dist/api/core/pathSerializer.gen.cjs"
|
|
173
|
-
},
|
|
174
|
-
"import": {
|
|
175
|
-
"types": "./dist/api/core/pathSerializer.gen.d.mts",
|
|
176
|
-
"default": "./dist/api/core/pathSerializer.gen.mjs"
|
|
177
|
-
},
|
|
178
|
-
"default": {
|
|
179
|
-
"types": "./dist/api/core/pathSerializer.gen.d.mts",
|
|
180
|
-
"default": "./dist/api/core/pathSerializer.gen.mjs"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
"./api/core/queryKeySerializer.gen": {
|
|
184
|
-
"require": {
|
|
185
|
-
"types": "./dist/api/core/queryKeySerializer.gen.d.cts",
|
|
186
|
-
"default": "./dist/api/core/queryKeySerializer.gen.cjs"
|
|
187
|
-
},
|
|
188
|
-
"import": {
|
|
189
|
-
"types": "./dist/api/core/queryKeySerializer.gen.d.mts",
|
|
190
|
-
"default": "./dist/api/core/queryKeySerializer.gen.mjs"
|
|
191
|
-
},
|
|
192
|
-
"default": {
|
|
193
|
-
"types": "./dist/api/core/queryKeySerializer.gen.d.mts",
|
|
194
|
-
"default": "./dist/api/core/queryKeySerializer.gen.mjs"
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
"./api/core/serverSentEvents.gen": {
|
|
198
|
-
"require": {
|
|
199
|
-
"types": "./dist/api/core/serverSentEvents.gen.d.cts",
|
|
200
|
-
"default": "./dist/api/core/serverSentEvents.gen.cjs"
|
|
201
|
-
},
|
|
202
|
-
"import": {
|
|
203
|
-
"types": "./dist/api/core/serverSentEvents.gen.d.mts",
|
|
204
|
-
"default": "./dist/api/core/serverSentEvents.gen.mjs"
|
|
205
|
-
},
|
|
206
|
-
"default": {
|
|
207
|
-
"types": "./dist/api/core/serverSentEvents.gen.d.mts",
|
|
208
|
-
"default": "./dist/api/core/serverSentEvents.gen.mjs"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
"./api/core/types.gen": {
|
|
212
|
-
"require": {
|
|
213
|
-
"types": "./dist/api/core/types.gen.d.cts",
|
|
214
|
-
"default": "./dist/api/core/types.gen.cjs"
|
|
215
|
-
},
|
|
216
|
-
"import": {
|
|
217
|
-
"types": "./dist/api/core/types.gen.d.mts",
|
|
218
|
-
"default": "./dist/api/core/types.gen.mjs"
|
|
219
|
-
},
|
|
220
|
-
"default": {
|
|
221
|
-
"types": "./dist/api/core/types.gen.d.mts",
|
|
222
|
-
"default": "./dist/api/core/types.gen.mjs"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"./api/core/utils.gen": {
|
|
226
|
-
"require": {
|
|
227
|
-
"types": "./dist/api/core/utils.gen.d.cts",
|
|
228
|
-
"default": "./dist/api/core/utils.gen.cjs"
|
|
229
|
-
},
|
|
230
|
-
"import": {
|
|
231
|
-
"types": "./dist/api/core/utils.gen.d.mts",
|
|
232
|
-
"default": "./dist/api/core/utils.gen.mjs"
|
|
233
|
-
},
|
|
234
|
-
"default": {
|
|
235
|
-
"types": "./dist/api/core/utils.gen.d.mts",
|
|
236
|
-
"default": "./dist/api/core/utils.gen.mjs"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"./api/sdk.gen": {
|
|
240
|
-
"require": {
|
|
241
|
-
"types": "./dist/api/sdk.gen.d.cts",
|
|
242
|
-
"default": "./dist/api/sdk.gen.cjs"
|
|
243
|
-
},
|
|
244
|
-
"import": {
|
|
245
|
-
"types": "./dist/api/sdk.gen.d.mts",
|
|
246
|
-
"default": "./dist/api/sdk.gen.mjs"
|
|
247
|
-
},
|
|
248
|
-
"default": {
|
|
249
|
-
"types": "./dist/api/sdk.gen.d.mts",
|
|
250
|
-
"default": "./dist/api/sdk.gen.mjs"
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"./api/types.gen": {
|
|
254
|
-
"require": {
|
|
255
|
-
"types": "./dist/api/types.gen.d.cts",
|
|
256
|
-
"default": "./dist/api/types.gen.cjs"
|
|
257
|
-
},
|
|
258
|
-
"import": {
|
|
259
|
-
"types": "./dist/api/types.gen.d.mts",
|
|
260
|
-
"default": "./dist/api/types.gen.mjs"
|
|
261
|
-
},
|
|
262
|
-
"default": {
|
|
263
|
-
"types": "./dist/api/types.gen.d.mts",
|
|
264
|
-
"default": "./dist/api/types.gen.mjs"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
57
|
"./helpers": {
|
|
268
58
|
"require": {
|
|
269
59
|
"types": "./dist/helpers/index.d.cts",
|
|
@@ -278,32 +68,32 @@
|
|
|
278
68
|
"default": "./dist/helpers/index.mjs"
|
|
279
69
|
}
|
|
280
70
|
},
|
|
281
|
-
"./helpers/
|
|
71
|
+
"./helpers/client-generator": {
|
|
282
72
|
"require": {
|
|
283
|
-
"types": "./dist/helpers/
|
|
284
|
-
"default": "./dist/helpers/
|
|
73
|
+
"types": "./dist/helpers/client-generator.d.cts",
|
|
74
|
+
"default": "./dist/helpers/client-generator.cjs"
|
|
285
75
|
},
|
|
286
76
|
"import": {
|
|
287
|
-
"types": "./dist/helpers/
|
|
288
|
-
"default": "./dist/helpers/
|
|
77
|
+
"types": "./dist/helpers/client-generator.d.mts",
|
|
78
|
+
"default": "./dist/helpers/client-generator.mjs"
|
|
289
79
|
},
|
|
290
80
|
"default": {
|
|
291
|
-
"types": "./dist/helpers/
|
|
292
|
-
"default": "./dist/helpers/
|
|
81
|
+
"types": "./dist/helpers/client-generator.d.mts",
|
|
82
|
+
"default": "./dist/helpers/client-generator.mjs"
|
|
293
83
|
}
|
|
294
84
|
},
|
|
295
|
-
"./helpers/
|
|
85
|
+
"./helpers/get-schema": {
|
|
296
86
|
"require": {
|
|
297
|
-
"types": "./dist/helpers/
|
|
298
|
-
"default": "./dist/helpers/
|
|
87
|
+
"types": "./dist/helpers/get-schema.d.cts",
|
|
88
|
+
"default": "./dist/helpers/get-schema.cjs"
|
|
299
89
|
},
|
|
300
90
|
"import": {
|
|
301
|
-
"types": "./dist/helpers/
|
|
302
|
-
"default": "./dist/helpers/
|
|
91
|
+
"types": "./dist/helpers/get-schema.d.mts",
|
|
92
|
+
"default": "./dist/helpers/get-schema.mjs"
|
|
303
93
|
},
|
|
304
94
|
"default": {
|
|
305
|
-
"types": "./dist/helpers/
|
|
306
|
-
"default": "./dist/helpers/
|
|
95
|
+
"types": "./dist/helpers/get-schema.d.mts",
|
|
96
|
+
"default": "./dist/helpers/get-schema.mjs"
|
|
307
97
|
}
|
|
308
98
|
},
|
|
309
99
|
"./helpers/schema-creator": {
|
|
@@ -320,6 +110,20 @@
|
|
|
320
110
|
"default": "./dist/helpers/schema-creator.mjs"
|
|
321
111
|
}
|
|
322
112
|
},
|
|
113
|
+
"./helpers/typed-sql": {
|
|
114
|
+
"require": {
|
|
115
|
+
"types": "./dist/helpers/typed-sql.d.cts",
|
|
116
|
+
"default": "./dist/helpers/typed-sql.cjs"
|
|
117
|
+
},
|
|
118
|
+
"import": {
|
|
119
|
+
"types": "./dist/helpers/typed-sql.d.mts",
|
|
120
|
+
"default": "./dist/helpers/typed-sql.mjs"
|
|
121
|
+
},
|
|
122
|
+
"default": {
|
|
123
|
+
"types": "./dist/helpers/typed-sql.d.mts",
|
|
124
|
+
"default": "./dist/helpers/typed-sql.mjs"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
323
127
|
"./package.json": "./package.json",
|
|
324
128
|
"./types": {
|
|
325
129
|
"require": {
|
|
@@ -370,27 +174,34 @@
|
|
|
370
174
|
"typings": "dist/index.d.mts",
|
|
371
175
|
"files": ["dist/**/*"],
|
|
372
176
|
"dependencies": {
|
|
373
|
-
"@powerlines/plugin-pulumi": "^0.5.
|
|
177
|
+
"@powerlines/plugin-pulumi": "^0.5.30",
|
|
178
|
+
"@prisma/client-generator-registry": "^7.5.0",
|
|
179
|
+
"@prisma/config": "^7.5.0",
|
|
180
|
+
"@prisma/dmmf": "^7.5.0",
|
|
181
|
+
"@prisma/generator-helper": "^7.5.0",
|
|
374
182
|
"@prisma/get-platform": "^6.19.2",
|
|
183
|
+
"@prisma/migrate": "^7.5.0",
|
|
375
184
|
"@prisma/prisma-schema-wasm": "6.19.0-26.2ba551f319ab1df4bc874a89965d8b3641056773",
|
|
376
|
-
"@stryke/cli": "^0.13.
|
|
377
|
-
"@stryke/
|
|
378
|
-
"@stryke/
|
|
379
|
-
"@stryke/
|
|
380
|
-
"@stryke/
|
|
381
|
-
"@stryke/
|
|
185
|
+
"@stryke/cli": "^0.13.30",
|
|
186
|
+
"@stryke/convert": "^0.6.54",
|
|
187
|
+
"@stryke/fs": "^0.33.58",
|
|
188
|
+
"@stryke/path": "^0.27.0",
|
|
189
|
+
"@stryke/string-format": "^0.17.4",
|
|
190
|
+
"@stryke/type-checks": "^0.5.39",
|
|
191
|
+
"@stryke/types": "^0.10.53",
|
|
382
192
|
"defu": "^6.1.4",
|
|
383
193
|
"fp-ts": "^2.16.11",
|
|
384
194
|
"jiti": "^2.6.1",
|
|
385
|
-
"powerlines": "^0.41.
|
|
195
|
+
"powerlines": "^0.41.14",
|
|
386
196
|
"prisma-util": "^2.1.1",
|
|
387
197
|
"ts-pattern": "^5.9.0"
|
|
388
198
|
},
|
|
389
199
|
"devDependencies": {
|
|
390
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
200
|
+
"@powerlines/plugin-plugin": "^0.12.300",
|
|
201
|
+
"@prisma/client-generator-ts": "^7.5.0",
|
|
391
202
|
"@pulumi/pulumi": "^3.225.1",
|
|
392
203
|
"@types/node": "^25.5.0"
|
|
393
204
|
},
|
|
394
205
|
"publishConfig": { "access": "public" },
|
|
395
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "369e884879e82b75feffe7cfd91c78584accb1d2"
|
|
396
207
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
|
|
29
|
-
exports.__toESM = __toESM;
|