@powerlines/plugin-prisma 0.1.20 → 0.1.21
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/helpers/index.d.cts +2 -4
- package/dist/helpers/index.d.ts +2 -4
- package/dist/helpers/schema-creator.d.cts +2 -4
- package/dist/helpers/schema-creator.d.ts +2 -4
- package/dist/{index-BE8dI0A7.d.ts → index-BcbdHGh2.d.ts} +118 -101
- package/dist/{index-DMzniWTy.d.cts → index-DgQ2LJJg.d.cts} +118 -101
- package/dist/index.d.cts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/types/index.d.cts +2 -4
- package/dist/types/index.d.ts +2 -4
- package/dist/types/plugin.d.cts +2 -4
- package/dist/types/plugin.d.ts +2 -4
- package/package.json +5 -5
package/dist/helpers/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getSchema } from './get-schema.cjs';
|
|
2
|
-
export { P as PrismaSchemaCreator } from '../index-
|
|
2
|
+
export { P as PrismaSchemaCreator } from '../index-DgQ2LJJg.cjs';
|
|
3
3
|
import '../types/prisma.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,12 +11,10 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
22
20
|
import 'prisma-util/schema-creator';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getSchema } from './get-schema.js';
|
|
2
|
-
export { P as PrismaSchemaCreator } from '../index-
|
|
2
|
+
export { P as PrismaSchemaCreator } from '../index-BcbdHGh2.js';
|
|
3
3
|
import '../types/prisma.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,12 +11,10 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
22
20
|
import 'prisma-util/schema-creator';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'prisma-util/schema-creator';
|
|
2
|
-
export { P as PrismaSchemaCreator } from '../index-
|
|
2
|
+
export { P as PrismaSchemaCreator } from '../index-DgQ2LJJg.cjs';
|
|
3
3
|
import '../types/prisma.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,11 +11,9 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'prisma-util/schema-creator';
|
|
2
|
-
export { P as PrismaSchemaCreator } from '../index-
|
|
2
|
+
export { P as PrismaSchemaCreator } from '../index-BcbdHGh2.js';
|
|
3
3
|
import '../types/prisma.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,11 +11,9 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
@@ -8,13 +8,11 @@ import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
|
8
8
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
9
9
|
import { PackageJson } from '@stryke/types/package-json';
|
|
10
10
|
import { Jiti } from 'jiti';
|
|
11
|
-
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
12
11
|
import { Range } from 'semver';
|
|
13
12
|
import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
13
|
+
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
14
14
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
15
15
|
import ts from 'typescript';
|
|
16
|
-
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
17
|
-
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
18
16
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
17
|
import { SchemaCreator } from 'prisma-util/schema-creator';
|
|
20
18
|
import { GeneratorConfig, PrismaSchema } from './types/prisma.js';
|
|
@@ -155,87 +153,20 @@ interface BuildConfig {
|
|
|
155
153
|
}
|
|
156
154
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
157
155
|
|
|
158
|
-
type ReflectionMode = "default" | "explicit" | "never";
|
|
159
|
-
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
160
|
-
/**
|
|
161
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
162
|
-
*
|
|
163
|
-
* @remarks
|
|
164
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
165
|
-
* - `minimal` - Only the essential type information is captured.
|
|
166
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
167
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
168
|
-
*/
|
|
169
|
-
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
170
|
-
interface DeepkitOptions {
|
|
171
|
-
/**
|
|
172
|
-
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
173
|
-
* or a list of globs/file paths relative to this tsconfig.json.
|
|
174
|
-
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
175
|
-
*/
|
|
176
|
-
reflection?: RawReflectionMode;
|
|
177
|
-
/**
|
|
178
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
179
|
-
*
|
|
180
|
-
* @remarks
|
|
181
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
182
|
-
* - `minimal` - Only the essential type information is captured.
|
|
183
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
184
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
185
|
-
*/
|
|
186
|
-
reflectionLevel?: ReflectionLevel;
|
|
187
|
-
}
|
|
188
|
-
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
189
|
-
/**
|
|
190
|
-
* The TypeScript compiler configuration.
|
|
191
|
-
*
|
|
192
|
-
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
193
|
-
*/
|
|
194
|
-
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
195
|
-
/**
|
|
196
|
-
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
197
|
-
* or a list of globs/file paths relative to this tsconfig.json.
|
|
198
|
-
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
199
|
-
*/
|
|
200
|
-
reflection?: RawReflectionMode;
|
|
201
|
-
/**
|
|
202
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
203
|
-
*
|
|
204
|
-
* @remarks
|
|
205
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
206
|
-
* - `minimal` - Only the essential type information is captured.
|
|
207
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
208
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
209
|
-
*/
|
|
210
|
-
reflectionLevel?: ReflectionLevel;
|
|
211
|
-
/**
|
|
212
|
-
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
213
|
-
*/
|
|
214
|
-
compilerOptions?: TSCompilerOptions;
|
|
215
|
-
}
|
|
216
|
-
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
217
|
-
originalTsconfigJson: TsConfigJson;
|
|
218
|
-
tsconfigJson: TSConfig;
|
|
219
|
-
tsconfigFilePath: string;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
156
|
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
223
157
|
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
224
158
|
type OutputModeType = "fs" | "virtual";
|
|
225
|
-
interface
|
|
159
|
+
interface VirtualFileMetadata {
|
|
226
160
|
/**
|
|
227
|
-
* The
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
* If no specific id is provided, it defaults to the file's {@link path}.
|
|
161
|
+
* The identifier for the file data.
|
|
231
162
|
*/
|
|
232
163
|
id: string;
|
|
233
164
|
/**
|
|
234
|
-
*
|
|
165
|
+
* The timestamp of the virtual file.
|
|
235
166
|
*/
|
|
236
|
-
|
|
167
|
+
timestamp: number;
|
|
237
168
|
/**
|
|
238
|
-
* The
|
|
169
|
+
* The type of the file.
|
|
239
170
|
*
|
|
240
171
|
* @remarks
|
|
241
172
|
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
@@ -243,52 +174,72 @@ interface VirtualFile {
|
|
|
243
174
|
* - `entry`: Indicates that the file is an entry point for execution.
|
|
244
175
|
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
245
176
|
*/
|
|
246
|
-
|
|
177
|
+
type: string;
|
|
247
178
|
/**
|
|
248
179
|
* The output mode of the file.
|
|
249
|
-
*
|
|
250
|
-
* @remarks
|
|
251
|
-
* This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
|
|
252
180
|
*/
|
|
253
|
-
mode:
|
|
254
|
-
/**
|
|
255
|
-
* A virtual (or actual) path to the file in the file system.
|
|
256
|
-
*/
|
|
257
|
-
path: string;
|
|
181
|
+
mode: string;
|
|
258
182
|
/**
|
|
259
|
-
*
|
|
183
|
+
* Additional metadata associated with the file.
|
|
260
184
|
*/
|
|
261
|
-
|
|
185
|
+
properties: Record<string, string>;
|
|
262
186
|
}
|
|
263
|
-
interface
|
|
187
|
+
interface VirtualFileData {
|
|
264
188
|
/**
|
|
265
189
|
* The identifier for the file data.
|
|
266
190
|
*/
|
|
267
|
-
id
|
|
191
|
+
id?: string;
|
|
268
192
|
/**
|
|
269
|
-
* The
|
|
193
|
+
* The contents of the virtual file.
|
|
194
|
+
*/
|
|
195
|
+
code: string;
|
|
196
|
+
/**
|
|
197
|
+
* The type of the file.
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
201
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
202
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
203
|
+
* - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
|
|
204
|
+
* - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
|
|
205
|
+
* - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
|
|
206
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
270
207
|
*/
|
|
271
|
-
|
|
208
|
+
type?: string;
|
|
272
209
|
/**
|
|
273
210
|
* The output mode of the file.
|
|
274
211
|
*/
|
|
275
|
-
mode
|
|
212
|
+
mode?: string;
|
|
276
213
|
/**
|
|
277
214
|
* Additional metadata associated with the file.
|
|
278
215
|
*/
|
|
279
|
-
properties
|
|
216
|
+
properties?: Record<string, string>;
|
|
217
|
+
}
|
|
218
|
+
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
219
|
+
/**
|
|
220
|
+
* An additional name for the file.
|
|
221
|
+
*/
|
|
222
|
+
path: string;
|
|
223
|
+
/**
|
|
224
|
+
* The timestamp of the virtual file.
|
|
225
|
+
*/
|
|
226
|
+
timestamp: number;
|
|
280
227
|
}
|
|
281
228
|
interface ResolveFSOptions {
|
|
282
229
|
mode?: OutputModeType;
|
|
283
230
|
}
|
|
284
231
|
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
285
232
|
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
233
|
+
/**
|
|
234
|
+
* Should the file skip formatting before being written?
|
|
235
|
+
*
|
|
236
|
+
* @defaultValue false
|
|
237
|
+
*/
|
|
286
238
|
skipFormat?: boolean;
|
|
287
239
|
}
|
|
288
240
|
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
289
241
|
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
290
|
-
type
|
|
291
|
-
type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
|
|
242
|
+
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
292
243
|
interface ResolvePathOptions extends ResolveFSOptions {
|
|
293
244
|
/**
|
|
294
245
|
* Should the resolved path include the file extension?
|
|
@@ -303,7 +254,7 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
303
254
|
/**
|
|
304
255
|
* The type of the path to resolve.
|
|
305
256
|
*/
|
|
306
|
-
|
|
257
|
+
pathType?: "file" | "directory";
|
|
307
258
|
}
|
|
308
259
|
interface VirtualFileSystemInterface {
|
|
309
260
|
/**
|
|
@@ -592,6 +543,70 @@ interface VirtualFileSystemInterface {
|
|
|
592
543
|
dispose: () => Promise<void>;
|
|
593
544
|
}
|
|
594
545
|
|
|
546
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
547
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
548
|
+
/**
|
|
549
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
550
|
+
*
|
|
551
|
+
* @remarks
|
|
552
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
553
|
+
* - `minimal` - Only the essential type information is captured.
|
|
554
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
555
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
556
|
+
*/
|
|
557
|
+
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
558
|
+
interface DeepkitOptions {
|
|
559
|
+
/**
|
|
560
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
561
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
562
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
563
|
+
*/
|
|
564
|
+
reflection?: RawReflectionMode;
|
|
565
|
+
/**
|
|
566
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
567
|
+
*
|
|
568
|
+
* @remarks
|
|
569
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
570
|
+
* - `minimal` - Only the essential type information is captured.
|
|
571
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
572
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
573
|
+
*/
|
|
574
|
+
reflectionLevel?: ReflectionLevel;
|
|
575
|
+
}
|
|
576
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
577
|
+
/**
|
|
578
|
+
* The TypeScript compiler configuration.
|
|
579
|
+
*
|
|
580
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
581
|
+
*/
|
|
582
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
583
|
+
/**
|
|
584
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
585
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
586
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
587
|
+
*/
|
|
588
|
+
reflection?: RawReflectionMode;
|
|
589
|
+
/**
|
|
590
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
591
|
+
*
|
|
592
|
+
* @remarks
|
|
593
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
594
|
+
* - `minimal` - Only the essential type information is captured.
|
|
595
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
596
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
597
|
+
*/
|
|
598
|
+
reflectionLevel?: ReflectionLevel;
|
|
599
|
+
/**
|
|
600
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
601
|
+
*/
|
|
602
|
+
compilerOptions?: TSCompilerOptions;
|
|
603
|
+
}
|
|
604
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
605
|
+
originalTsconfigJson: TsConfigJson;
|
|
606
|
+
tsconfigJson: TSConfig;
|
|
607
|
+
tsconfigFilePath: string;
|
|
608
|
+
};
|
|
609
|
+
|
|
595
610
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
596
611
|
/**
|
|
597
612
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -1139,7 +1154,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1139
1154
|
* @param path - An optional path to write the builtin file to
|
|
1140
1155
|
* @param options - Options for writing the file
|
|
1141
1156
|
*/
|
|
1142
|
-
|
|
1157
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
|
|
1143
1158
|
/**
|
|
1144
1159
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1145
1160
|
*
|
|
@@ -1147,11 +1162,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1147
1162
|
* @param path - An optional path to write the entry file to
|
|
1148
1163
|
* @param options - Options for writing the file
|
|
1149
1164
|
*/
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Parses the source code and returns a {@link ParseResult} object.
|
|
1153
|
-
*/
|
|
1154
|
-
parse: (code: string, id: string, options?: ParserOptions | null) => Promise<ParseResult>;
|
|
1165
|
+
emitEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
|
|
1155
1166
|
/**
|
|
1156
1167
|
* A function to update the context fields using a new user configuration options
|
|
1157
1168
|
*/
|
|
@@ -1373,6 +1384,12 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1373
1384
|
resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
1374
1385
|
isEntry: boolean;
|
|
1375
1386
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
1387
|
+
/**
|
|
1388
|
+
* An API object that can be used for inter-plugin communication.
|
|
1389
|
+
*
|
|
1390
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
1391
|
+
*/
|
|
1392
|
+
api?: Record<string, any>;
|
|
1376
1393
|
};
|
|
1377
1394
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
1378
1395
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
|
@@ -8,13 +8,11 @@ import { PreviewOptions, ResolvedPreviewOptions } from 'vite';
|
|
|
8
8
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
9
9
|
import { PackageJson } from '@stryke/types/package-json';
|
|
10
10
|
import { Jiti } from 'jiti';
|
|
11
|
-
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
12
11
|
import { Range } from 'semver';
|
|
13
12
|
import { UnpluginMessage, UnpluginContext, UnpluginBuildContext, TransformResult, ExternalIdResult, HookFilter, UnpluginOptions } from 'unplugin';
|
|
13
|
+
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
14
14
|
import { TsConfigJson, CompilerOptions } from '@stryke/types/tsconfig';
|
|
15
15
|
import ts from 'typescript';
|
|
16
|
-
import { PrimitiveJsonValue } from '@stryke/json/types';
|
|
17
|
-
import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
18
16
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
17
|
import { SchemaCreator } from 'prisma-util/schema-creator';
|
|
20
18
|
import { GeneratorConfig, PrismaSchema } from './types/prisma.cjs';
|
|
@@ -155,87 +153,20 @@ interface BuildConfig {
|
|
|
155
153
|
}
|
|
156
154
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
157
155
|
|
|
158
|
-
type ReflectionMode = "default" | "explicit" | "never";
|
|
159
|
-
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
160
|
-
/**
|
|
161
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
162
|
-
*
|
|
163
|
-
* @remarks
|
|
164
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
165
|
-
* - `minimal` - Only the essential type information is captured.
|
|
166
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
167
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
168
|
-
*/
|
|
169
|
-
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
170
|
-
interface DeepkitOptions {
|
|
171
|
-
/**
|
|
172
|
-
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
173
|
-
* or a list of globs/file paths relative to this tsconfig.json.
|
|
174
|
-
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
175
|
-
*/
|
|
176
|
-
reflection?: RawReflectionMode;
|
|
177
|
-
/**
|
|
178
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
179
|
-
*
|
|
180
|
-
* @remarks
|
|
181
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
182
|
-
* - `minimal` - Only the essential type information is captured.
|
|
183
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
184
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
185
|
-
*/
|
|
186
|
-
reflectionLevel?: ReflectionLevel;
|
|
187
|
-
}
|
|
188
|
-
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
189
|
-
/**
|
|
190
|
-
* The TypeScript compiler configuration.
|
|
191
|
-
*
|
|
192
|
-
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
193
|
-
*/
|
|
194
|
-
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
195
|
-
/**
|
|
196
|
-
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
197
|
-
* or a list of globs/file paths relative to this tsconfig.json.
|
|
198
|
-
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
199
|
-
*/
|
|
200
|
-
reflection?: RawReflectionMode;
|
|
201
|
-
/**
|
|
202
|
-
* Defines the level of reflection to be used during the transpilation process.
|
|
203
|
-
*
|
|
204
|
-
* @remarks
|
|
205
|
-
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
206
|
-
* - `minimal` - Only the essential type information is captured.
|
|
207
|
-
* - `normal` - Additional type information is captured, including some contextual data.
|
|
208
|
-
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
209
|
-
*/
|
|
210
|
-
reflectionLevel?: ReflectionLevel;
|
|
211
|
-
/**
|
|
212
|
-
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
213
|
-
*/
|
|
214
|
-
compilerOptions?: TSCompilerOptions;
|
|
215
|
-
}
|
|
216
|
-
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
217
|
-
originalTsconfigJson: TsConfigJson;
|
|
218
|
-
tsconfigJson: TSConfig;
|
|
219
|
-
tsconfigFilePath: string;
|
|
220
|
-
};
|
|
221
|
-
|
|
222
156
|
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
223
157
|
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
224
158
|
type OutputModeType = "fs" | "virtual";
|
|
225
|
-
interface
|
|
159
|
+
interface VirtualFileMetadata {
|
|
226
160
|
/**
|
|
227
|
-
* The
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
* If no specific id is provided, it defaults to the file's {@link path}.
|
|
161
|
+
* The identifier for the file data.
|
|
231
162
|
*/
|
|
232
163
|
id: string;
|
|
233
164
|
/**
|
|
234
|
-
*
|
|
165
|
+
* The timestamp of the virtual file.
|
|
235
166
|
*/
|
|
236
|
-
|
|
167
|
+
timestamp: number;
|
|
237
168
|
/**
|
|
238
|
-
* The
|
|
169
|
+
* The type of the file.
|
|
239
170
|
*
|
|
240
171
|
* @remarks
|
|
241
172
|
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
@@ -243,52 +174,72 @@ interface VirtualFile {
|
|
|
243
174
|
* - `entry`: Indicates that the file is an entry point for execution.
|
|
244
175
|
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
245
176
|
*/
|
|
246
|
-
|
|
177
|
+
type: string;
|
|
247
178
|
/**
|
|
248
179
|
* The output mode of the file.
|
|
249
|
-
*
|
|
250
|
-
* @remarks
|
|
251
|
-
* This indicates whether the file is intended to be written to the actual file system (`fs`) or kept in the virtual file system (`virtual`).
|
|
252
180
|
*/
|
|
253
|
-
mode:
|
|
254
|
-
/**
|
|
255
|
-
* A virtual (or actual) path to the file in the file system.
|
|
256
|
-
*/
|
|
257
|
-
path: string;
|
|
181
|
+
mode: string;
|
|
258
182
|
/**
|
|
259
|
-
*
|
|
183
|
+
* Additional metadata associated with the file.
|
|
260
184
|
*/
|
|
261
|
-
|
|
185
|
+
properties: Record<string, string>;
|
|
262
186
|
}
|
|
263
|
-
interface
|
|
187
|
+
interface VirtualFileData {
|
|
264
188
|
/**
|
|
265
189
|
* The identifier for the file data.
|
|
266
190
|
*/
|
|
267
|
-
id
|
|
191
|
+
id?: string;
|
|
268
192
|
/**
|
|
269
|
-
* The
|
|
193
|
+
* The contents of the virtual file.
|
|
194
|
+
*/
|
|
195
|
+
code: string;
|
|
196
|
+
/**
|
|
197
|
+
* The type of the file.
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
201
|
+
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
202
|
+
* - `entry`: Indicates that the file is an entry point for execution.
|
|
203
|
+
* - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
|
|
204
|
+
* - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
|
|
205
|
+
* - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
|
|
206
|
+
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
270
207
|
*/
|
|
271
|
-
|
|
208
|
+
type?: string;
|
|
272
209
|
/**
|
|
273
210
|
* The output mode of the file.
|
|
274
211
|
*/
|
|
275
|
-
mode
|
|
212
|
+
mode?: string;
|
|
276
213
|
/**
|
|
277
214
|
* Additional metadata associated with the file.
|
|
278
215
|
*/
|
|
279
|
-
properties
|
|
216
|
+
properties?: Record<string, string>;
|
|
217
|
+
}
|
|
218
|
+
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
219
|
+
/**
|
|
220
|
+
* An additional name for the file.
|
|
221
|
+
*/
|
|
222
|
+
path: string;
|
|
223
|
+
/**
|
|
224
|
+
* The timestamp of the virtual file.
|
|
225
|
+
*/
|
|
226
|
+
timestamp: number;
|
|
280
227
|
}
|
|
281
228
|
interface ResolveFSOptions {
|
|
282
229
|
mode?: OutputModeType;
|
|
283
230
|
}
|
|
284
231
|
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
285
232
|
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
233
|
+
/**
|
|
234
|
+
* Should the file skip formatting before being written?
|
|
235
|
+
*
|
|
236
|
+
* @defaultValue false
|
|
237
|
+
*/
|
|
286
238
|
skipFormat?: boolean;
|
|
287
239
|
}
|
|
288
240
|
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
289
241
|
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
290
|
-
type
|
|
291
|
-
type WriteFileData = string | NodeJS.ArrayBufferView | PowerLinesWriteFileData;
|
|
242
|
+
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
292
243
|
interface ResolvePathOptions extends ResolveFSOptions {
|
|
293
244
|
/**
|
|
294
245
|
* Should the resolved path include the file extension?
|
|
@@ -303,7 +254,7 @@ interface ResolvePathOptions extends ResolveFSOptions {
|
|
|
303
254
|
/**
|
|
304
255
|
* The type of the path to resolve.
|
|
305
256
|
*/
|
|
306
|
-
|
|
257
|
+
pathType?: "file" | "directory";
|
|
307
258
|
}
|
|
308
259
|
interface VirtualFileSystemInterface {
|
|
309
260
|
/**
|
|
@@ -592,6 +543,70 @@ interface VirtualFileSystemInterface {
|
|
|
592
543
|
dispose: () => Promise<void>;
|
|
593
544
|
}
|
|
594
545
|
|
|
546
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
547
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
548
|
+
/**
|
|
549
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
550
|
+
*
|
|
551
|
+
* @remarks
|
|
552
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
553
|
+
* - `minimal` - Only the essential type information is captured.
|
|
554
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
555
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
556
|
+
*/
|
|
557
|
+
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
558
|
+
interface DeepkitOptions {
|
|
559
|
+
/**
|
|
560
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
561
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
562
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
563
|
+
*/
|
|
564
|
+
reflection?: RawReflectionMode;
|
|
565
|
+
/**
|
|
566
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
567
|
+
*
|
|
568
|
+
* @remarks
|
|
569
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
570
|
+
* - `minimal` - Only the essential type information is captured.
|
|
571
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
572
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
573
|
+
*/
|
|
574
|
+
reflectionLevel?: ReflectionLevel;
|
|
575
|
+
}
|
|
576
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
577
|
+
/**
|
|
578
|
+
* The TypeScript compiler configuration.
|
|
579
|
+
*
|
|
580
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
581
|
+
*/
|
|
582
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
583
|
+
/**
|
|
584
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
585
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
586
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
587
|
+
*/
|
|
588
|
+
reflection?: RawReflectionMode;
|
|
589
|
+
/**
|
|
590
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
591
|
+
*
|
|
592
|
+
* @remarks
|
|
593
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
594
|
+
* - `minimal` - Only the essential type information is captured.
|
|
595
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
596
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
597
|
+
*/
|
|
598
|
+
reflectionLevel?: ReflectionLevel;
|
|
599
|
+
/**
|
|
600
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
601
|
+
*/
|
|
602
|
+
compilerOptions?: TSCompilerOptions;
|
|
603
|
+
}
|
|
604
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
605
|
+
originalTsconfigJson: TsConfigJson;
|
|
606
|
+
tsconfigJson: TSConfig;
|
|
607
|
+
tsconfigFilePath: string;
|
|
608
|
+
};
|
|
609
|
+
|
|
595
610
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
596
611
|
/**
|
|
597
612
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -1139,7 +1154,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1139
1154
|
* @param path - An optional path to write the builtin file to
|
|
1140
1155
|
* @param options - Options for writing the file
|
|
1141
1156
|
*/
|
|
1142
|
-
|
|
1157
|
+
emitBuiltin: (code: string, id: string, path?: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
|
|
1143
1158
|
/**
|
|
1144
1159
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1145
1160
|
*
|
|
@@ -1147,11 +1162,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1147
1162
|
* @param path - An optional path to write the entry file to
|
|
1148
1163
|
* @param options - Options for writing the file
|
|
1149
1164
|
*/
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Parses the source code and returns a {@link ParseResult} object.
|
|
1153
|
-
*/
|
|
1154
|
-
parse: (code: string, id: string, options?: ParserOptions | null) => Promise<ParseResult>;
|
|
1165
|
+
emitEntry: (code: string, path: string, options?: PowerlinesWriteFileOptions) => Promise<void>;
|
|
1155
1166
|
/**
|
|
1156
1167
|
* A function to update the context fields using a new user configuration options
|
|
1157
1168
|
*/
|
|
@@ -1373,6 +1384,12 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = {
|
|
|
1373
1384
|
resolveId: PluginHook<(this: BuildPluginContext<TContext["config"]> & TContext, id: string, importer: string | undefined, options: {
|
|
1374
1385
|
isEntry: boolean;
|
|
1375
1386
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
1387
|
+
/**
|
|
1388
|
+
* An API object that can be used for inter-plugin communication.
|
|
1389
|
+
*
|
|
1390
|
+
* @see https://rollupjs.org/plugin-development/#direct-plugin-communication
|
|
1391
|
+
*/
|
|
1392
|
+
api?: Record<string, any>;
|
|
1376
1393
|
};
|
|
1377
1394
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = {
|
|
1378
1395
|
[TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant>;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-
|
|
2
|
-
export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-
|
|
1
|
+
import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-DgQ2LJJg.cjs';
|
|
2
|
+
export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-DgQ2LJJg.cjs';
|
|
3
3
|
export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput } from './types/prisma.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,13 +11,11 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
22
20
|
import 'prisma-util/schema-creator';
|
|
23
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-
|
|
2
|
-
export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-
|
|
1
|
+
import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-BcbdHGh2.js';
|
|
2
|
+
export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-BcbdHGh2.js';
|
|
3
3
|
export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput } from './types/prisma.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -11,13 +11,11 @@ import 'vite';
|
|
|
11
11
|
import '@stryke/env/get-env-paths';
|
|
12
12
|
import '@stryke/types/package-json';
|
|
13
13
|
import 'jiti';
|
|
14
|
-
import 'oxc-parser';
|
|
15
14
|
import 'semver';
|
|
16
15
|
import 'unplugin';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import '@stryke/types/tsconfig';
|
|
18
18
|
import 'typescript';
|
|
19
|
-
import '@stryke/json/types';
|
|
20
|
-
import 'node:fs';
|
|
21
19
|
import '@stryke/types/array';
|
|
22
20
|
import 'prisma-util/schema-creator';
|
|
23
21
|
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-
|
|
1
|
+
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-DgQ2LJJg.cjs';
|
|
2
2
|
export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput } from './prisma.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,12 +10,10 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
-
import 'oxc-parser';
|
|
14
13
|
import 'semver';
|
|
15
14
|
import 'unplugin';
|
|
15
|
+
import 'node:fs';
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
|
-
import '@stryke/json/types';
|
|
19
|
-
import 'node:fs';
|
|
20
18
|
import '@stryke/types/array';
|
|
21
19
|
import 'prisma-util/schema-creator';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-
|
|
1
|
+
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-BcbdHGh2.js';
|
|
2
2
|
export { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput } from './prisma.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,12 +10,10 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
-
import 'oxc-parser';
|
|
14
13
|
import 'semver';
|
|
15
14
|
import 'unplugin';
|
|
15
|
+
import 'node:fs';
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
|
-
import '@stryke/json/types';
|
|
19
|
-
import 'node:fs';
|
|
20
18
|
import '@stryke/types/array';
|
|
21
19
|
import 'prisma-util/schema-creator';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-
|
|
1
|
+
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-DgQ2LJJg.cjs';
|
|
2
2
|
import './prisma.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,12 +10,10 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
-
import 'oxc-parser';
|
|
14
13
|
import 'semver';
|
|
15
14
|
import 'unplugin';
|
|
15
|
+
import 'node:fs';
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
|
-
import '@stryke/json/types';
|
|
19
|
-
import 'node:fs';
|
|
20
18
|
import '@stryke/types/array';
|
|
21
19
|
import 'prisma-util/schema-creator';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-
|
|
1
|
+
export { a as PrismaPluginContext, b as PrismaPluginOptions, e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from '../index-BcbdHGh2.js';
|
|
2
2
|
import './prisma.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -10,12 +10,10 @@ import 'vite';
|
|
|
10
10
|
import '@stryke/env/get-env-paths';
|
|
11
11
|
import '@stryke/types/package-json';
|
|
12
12
|
import 'jiti';
|
|
13
|
-
import 'oxc-parser';
|
|
14
13
|
import 'semver';
|
|
15
14
|
import 'unplugin';
|
|
15
|
+
import 'node:fs';
|
|
16
16
|
import '@stryke/types/tsconfig';
|
|
17
17
|
import 'typescript';
|
|
18
|
-
import '@stryke/json/types';
|
|
19
|
-
import 'node:fs';
|
|
20
18
|
import '@stryke/types/array';
|
|
21
19
|
import 'prisma-util/schema-creator';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-prisma",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code and a Prisma client from a Prisma schema (PSL).",
|
|
6
6
|
"repository": {
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@stryke/cli": "^0.12.7",
|
|
135
135
|
"defu": "^6.1.4",
|
|
136
136
|
"jiti": "^2.6.1",
|
|
137
|
-
"powerlines": "^0.23.
|
|
137
|
+
"powerlines": "^0.23.4",
|
|
138
138
|
"ts-pattern": "^5.9.0",
|
|
139
139
|
"prisma-util": "^2.1.1",
|
|
140
140
|
"@prisma/get-platform": "^6.19.0",
|
|
@@ -142,10 +142,10 @@
|
|
|
142
142
|
"fp-ts": "^2.16.11"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
|
-
"@powerlines/nx": "^0.10.
|
|
146
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
145
|
+
"@powerlines/nx": "^0.10.21",
|
|
146
|
+
"@powerlines/plugin-plugin": "^0.11.29",
|
|
147
147
|
"@types/node": "^24.10.1"
|
|
148
148
|
},
|
|
149
149
|
"publishConfig": { "access": "public" },
|
|
150
|
-
"gitHead": "
|
|
150
|
+
"gitHead": "3075c08893a66a4e8d359e37f8d0344b0a80322b"
|
|
151
151
|
}
|