@powerlines/plugin-prisma 0.1.46 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts DELETED
@@ -1,32 +0,0 @@
1
- import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-B-z3Jwl2.cjs';
2
- export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-B-z3Jwl2.cjs';
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
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/types/package-json';
13
- import 'jiti';
14
- import 'magic-string';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'unplugin';
18
- import '@stryke/fs/resolve';
19
- import '@stryke/types/tsconfig';
20
- import 'typescript';
21
- import '@stryke/types/array';
22
- import 'prisma-util/schema-creator';
23
-
24
- /**
25
- * A Powerlines plugin to integrate Prisma for code generation.
26
- *
27
- * @param options - The plugin options.
28
- * @returns A Powerlines plugin instance.
29
- */
30
- declare const plugin: <TContext extends PrismaPluginContext = PrismaPluginContext>(options?: PrismaPluginOptions) => Plugin<TContext>;
31
-
32
- export { PrismaPluginContext, PrismaPluginOptions, plugin as default, plugin };
package/dist/index.d.ts DELETED
@@ -1,32 +0,0 @@
1
- import { a as PrismaPluginContext, b as PrismaPluginOptions, c as Plugin } from './index-lx02iWd5.js';
2
- export { e as PrismaPluginResolvedConfig, d as PrismaPluginUserConfig, h as __ΩPrismaPluginContext, _ as __ΩPrismaPluginOptions, g as __ΩPrismaPluginResolvedConfig, f as __ΩPrismaPluginUserConfig } from './index-lx02iWd5.js';
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
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/types/package-json';
13
- import 'jiti';
14
- import 'magic-string';
15
- import 'semver';
16
- import 'ts-morph';
17
- import 'unplugin';
18
- import '@stryke/fs/resolve';
19
- import '@stryke/types/tsconfig';
20
- import 'typescript';
21
- import '@stryke/types/array';
22
- import 'prisma-util/schema-creator';
23
-
24
- /**
25
- * A Powerlines plugin to integrate Prisma for code generation.
26
- *
27
- * @param options - The plugin options.
28
- * @returns A Powerlines plugin instance.
29
- */
30
- declare const plugin: <TContext extends PrismaPluginContext = PrismaPluginContext>(options?: PrismaPluginOptions) => Plugin<TContext>;
31
-
32
- export { PrismaPluginContext, PrismaPluginOptions, plugin as default, plugin };
@@ -1,21 +0,0 @@
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-B-z3Jwl2.cjs';
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
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
21
- import 'prisma-util/schema-creator';
@@ -1,21 +0,0 @@
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-lx02iWd5.js';
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
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
21
- import 'prisma-util/schema-creator';
@@ -1,21 +0,0 @@
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-B-z3Jwl2.cjs';
2
- import './prisma.cjs';
3
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
21
- import 'prisma-util/schema-creator';
@@ -1,21 +0,0 @@
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-lx02iWd5.js';
2
- import './prisma.js';
3
- import '@storm-software/build-tools/types';
4
- import '@storm-software/config-tools/types';
5
- import '@storm-software/config/types';
6
- import '@stryke/types/base';
7
- import '@stryke/types/configuration';
8
- import '@stryke/types/file';
9
- import 'vite';
10
- import '@stryke/env/get-env-paths';
11
- import '@stryke/types/package-json';
12
- import 'jiti';
13
- import 'magic-string';
14
- import 'semver';
15
- import 'ts-morph';
16
- import 'unplugin';
17
- import '@stryke/fs/resolve';
18
- import '@stryke/types/tsconfig';
19
- import 'typescript';
20
- import '@stryke/types/array';
21
- import 'prisma-util/schema-creator';
@@ -1,84 +0,0 @@
1
- type MultipleSchemas = Array<[filename: string, content: string]>;
2
- type SchemaFileInput = string | [filename: string, content: string];
3
- type ConnectorType = "mysql" | "mongodb" | "sqlite" | "postgresql" | "postgres" | "prisma+postgres" | "sqlserver" | "cockroachdb";
4
- type ActiveConnectorType = Exclude<ConnectorType, "postgres" | "prisma+postgres">;
5
- interface DataSource {
6
- name: string;
7
- provider: ConnectorType;
8
- activeProvider: ActiveConnectorType;
9
- url: EnvValue;
10
- directUrl?: EnvValue;
11
- schemas: string[] | [];
12
- sourceFilePath: string;
13
- }
14
- interface GetSchemaResponse {
15
- config: PrismaSchema;
16
- errors: GetSchemaValidationError[];
17
- }
18
- interface EnvValue {
19
- fromEnvVar: null | string;
20
- value: null | string;
21
- }
22
- interface EnvValue {
23
- fromEnvVar: null | string;
24
- value: null | string;
25
- }
26
- interface EnvPaths {
27
- rootEnvPath: string | null;
28
- schemaEnvPath: string | undefined;
29
- }
30
- interface BinaryTargetsEnvValue {
31
- fromEnvVar: string | null;
32
- value: string;
33
- native?: boolean;
34
- }
35
- interface GeneratorConfig {
36
- name: string;
37
- output: EnvValue | null;
38
- isCustomOutput?: boolean;
39
- provider: EnvValue;
40
- config: {
41
- /** `output` is a reserved name and will only be available directly at `generator.output` */
42
- output?: never;
43
- /** `provider` is a reserved name and will only be available directly at `generator.provider` */
44
- provider?: never;
45
- /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
46
- binaryTargets?: never;
47
- /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
48
- previewFeatures?: never;
49
- } & {
50
- [key: string]: string | string[] | undefined;
51
- };
52
- binaryTargets: BinaryTargetsEnvValue[];
53
- previewFeatures: string[];
54
- envPaths?: EnvPaths;
55
- sourceFilePath: string;
56
- }
57
- interface PrismaSchema {
58
- datasources: DataSource[];
59
- generators: GeneratorConfig[];
60
- warnings: string[];
61
- }
62
- interface GetSchemaValidationError {
63
- fileName: string | null;
64
- message: string;
65
- }
66
- interface GetSchemaOptions {
67
- datamodel: SchemaFileInput;
68
- ignoreEnvVarErrors?: boolean;
69
- }
70
-
71
- declare type __ΩMultipleSchemas = any[];
72
- declare type __ΩSchemaFileInput = any[];
73
- declare type __ΩConnectorType = any[];
74
- declare type __ΩActiveConnectorType = any[];
75
- declare type __ΩEnvValue = any[];
76
- declare type __ΩDataSource = any[];
77
- declare type __ΩGetSchemaResponse = any[];
78
- declare type __ΩEnvPaths = any[];
79
- declare type __ΩBinaryTargetsEnvValue = any[];
80
- declare type __ΩGeneratorConfig = any[];
81
- declare type __ΩPrismaSchema = any[];
82
- declare type __ΩGetSchemaOptions = any[];
83
-
84
- export type { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput };
@@ -1,84 +0,0 @@
1
- type MultipleSchemas = Array<[filename: string, content: string]>;
2
- type SchemaFileInput = string | [filename: string, content: string];
3
- type ConnectorType = "mysql" | "mongodb" | "sqlite" | "postgresql" | "postgres" | "prisma+postgres" | "sqlserver" | "cockroachdb";
4
- type ActiveConnectorType = Exclude<ConnectorType, "postgres" | "prisma+postgres">;
5
- interface DataSource {
6
- name: string;
7
- provider: ConnectorType;
8
- activeProvider: ActiveConnectorType;
9
- url: EnvValue;
10
- directUrl?: EnvValue;
11
- schemas: string[] | [];
12
- sourceFilePath: string;
13
- }
14
- interface GetSchemaResponse {
15
- config: PrismaSchema;
16
- errors: GetSchemaValidationError[];
17
- }
18
- interface EnvValue {
19
- fromEnvVar: null | string;
20
- value: null | string;
21
- }
22
- interface EnvValue {
23
- fromEnvVar: null | string;
24
- value: null | string;
25
- }
26
- interface EnvPaths {
27
- rootEnvPath: string | null;
28
- schemaEnvPath: string | undefined;
29
- }
30
- interface BinaryTargetsEnvValue {
31
- fromEnvVar: string | null;
32
- value: string;
33
- native?: boolean;
34
- }
35
- interface GeneratorConfig {
36
- name: string;
37
- output: EnvValue | null;
38
- isCustomOutput?: boolean;
39
- provider: EnvValue;
40
- config: {
41
- /** `output` is a reserved name and will only be available directly at `generator.output` */
42
- output?: never;
43
- /** `provider` is a reserved name and will only be available directly at `generator.provider` */
44
- provider?: never;
45
- /** `binaryTargets` is a reserved name and will only be available directly at `generator.binaryTargets` */
46
- binaryTargets?: never;
47
- /** `previewFeatures` is a reserved name and will only be available directly at `generator.previewFeatures` */
48
- previewFeatures?: never;
49
- } & {
50
- [key: string]: string | string[] | undefined;
51
- };
52
- binaryTargets: BinaryTargetsEnvValue[];
53
- previewFeatures: string[];
54
- envPaths?: EnvPaths;
55
- sourceFilePath: string;
56
- }
57
- interface PrismaSchema {
58
- datasources: DataSource[];
59
- generators: GeneratorConfig[];
60
- warnings: string[];
61
- }
62
- interface GetSchemaValidationError {
63
- fileName: string | null;
64
- message: string;
65
- }
66
- interface GetSchemaOptions {
67
- datamodel: SchemaFileInput;
68
- ignoreEnvVarErrors?: boolean;
69
- }
70
-
71
- declare type __ΩMultipleSchemas = any[];
72
- declare type __ΩSchemaFileInput = any[];
73
- declare type __ΩConnectorType = any[];
74
- declare type __ΩActiveConnectorType = any[];
75
- declare type __ΩEnvValue = any[];
76
- declare type __ΩDataSource = any[];
77
- declare type __ΩGetSchemaResponse = any[];
78
- declare type __ΩEnvPaths = any[];
79
- declare type __ΩBinaryTargetsEnvValue = any[];
80
- declare type __ΩGeneratorConfig = any[];
81
- declare type __ΩPrismaSchema = any[];
82
- declare type __ΩGetSchemaOptions = any[];
83
-
84
- export type { ActiveConnectorType, BinaryTargetsEnvValue, ConnectorType, DataSource, EnvPaths, EnvValue, GeneratorConfig, GetSchemaOptions, GetSchemaResponse, MultipleSchemas, PrismaSchema, SchemaFileInput, __ΩActiveConnectorType, __ΩBinaryTargetsEnvValue, __ΩConnectorType, __ΩDataSource, __ΩEnvPaths, __ΩEnvValue, __ΩGeneratorConfig, __ΩGetSchemaOptions, __ΩGetSchemaResponse, __ΩMultipleSchemas, __ΩPrismaSchema, __ΩSchemaFileInput };