@powerlines/plugin-prisma 0.1.37 → 0.1.38
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 +1 -2
- package/dist/helpers/index.d.ts +1 -2
- package/dist/helpers/schema-creator.cjs +2 -2
- package/dist/helpers/schema-creator.d.cts +1 -2
- package/dist/helpers/schema-creator.d.ts +1 -2
- package/dist/helpers/schema-creator.js +2 -2
- package/dist/{index-D5F7v29h.d.cts → index-BXMDp1y7.d.cts} +186 -229
- package/dist/{index-YNWxvfOp.d.ts → index-BxXKX9WL.d.ts} +186 -229
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugin.d.cts +1 -2
- package/dist/types/plugin.d.ts +1 -2
- package/package.json +10 -10
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-BXMDp1y7.cjs';
|
|
3
3
|
import '../types/prisma.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
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-BxXKX9WL.js';
|
|
3
3
|
import '../types/prisma.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
|
@@ -8,7 +8,7 @@ class v extends schemaCreator.SchemaCreator{static{chunkFBBMZ4NC_cjs.a(this,"Pri
|
|
|
8
8
|
generator ${e.name} {
|
|
9
9
|
provider = "${e.provider.value}"
|
|
10
10
|
output = "${e.output?.value}"${e.previewFeatures&&e.previewFeatures.length>0?`
|
|
11
|
-
previewFeatures = [${e.previewFeatures.map(t=>`"${t}"`).join(", ")}]`:""}${e.config&&Object.keys(e.config).length>0?Object.entries(e.config).map(([t,
|
|
11
|
+
previewFeatures = [${e.previewFeatures.map(t=>`"${t}"`).join(", ")}]`:""}${e.config&&Object.keys(e.config).length>0?Object.entries(e.config).map(([t,a])=>Array.isArray(a)?`${t} = [${a.map(i=>`"${i}"`).join(", ")}]`:`${t} = "${a}"`).join(`
|
|
12
12
|
`):""}${e.binaryTargets&&e.binaryTargets.length>0?`
|
|
13
13
|
binaryTargets = [${e.binaryTargets.map(t=>`"${t.value}"`).join(", ")}]`:""}${e.envPaths?.rootEnvPath||e.envPaths?.schemaEnvPath?`
|
|
14
14
|
env = {${e.envPaths?.rootEnvPath?`
|
|
@@ -17,4 +17,4 @@ generator ${e.name} {
|
|
|
17
17
|
}`:""}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${r}`;return r}async write(){await this.#e.fs.
|
|
20
|
+
${r}`;return r}async write(){await this.#e.fs.write(this.#e.config.prisma.schema,this.build());}}exports.PrismaSchemaCreator=v;
|
|
@@ -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-BXMDp1y7.cjs';
|
|
3
3
|
import '../types/prisma.cjs';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
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-BxXKX9WL.js';
|
|
3
3
|
import '../types/prisma.js';
|
|
4
4
|
import '@storm-software/build-tools/types';
|
|
5
5
|
import '@storm-software/config-tools/types';
|
|
@@ -16,7 +16,6 @@ import 'semver';
|
|
|
16
16
|
import 'ts-morph';
|
|
17
17
|
import 'unplugin';
|
|
18
18
|
import '@stryke/fs/resolve';
|
|
19
|
-
import 'node:fs';
|
|
20
19
|
import '@stryke/types/tsconfig';
|
|
21
20
|
import 'typescript';
|
|
22
21
|
import '@stryke/types/array';
|
|
@@ -8,7 +8,7 @@ class P extends SchemaCreator{static{a(this,"PrismaSchemaCreator");}#e;get gener
|
|
|
8
8
|
generator ${e.name} {
|
|
9
9
|
provider = "${e.provider.value}"
|
|
10
10
|
output = "${e.output?.value}"${e.previewFeatures&&e.previewFeatures.length>0?`
|
|
11
|
-
previewFeatures = [${e.previewFeatures.map(t=>`"${t}"`).join(", ")}]`:""}${e.config&&Object.keys(e.config).length>0?Object.entries(e.config).map(([t,
|
|
11
|
+
previewFeatures = [${e.previewFeatures.map(t=>`"${t}"`).join(", ")}]`:""}${e.config&&Object.keys(e.config).length>0?Object.entries(e.config).map(([t,a])=>Array.isArray(a)?`${t} = [${a.map(i=>`"${i}"`).join(", ")}]`:`${t} = "${a}"`).join(`
|
|
12
12
|
`):""}${e.binaryTargets&&e.binaryTargets.length>0?`
|
|
13
13
|
binaryTargets = [${e.binaryTargets.map(t=>`"${t.value}"`).join(", ")}]`:""}${e.envPaths?.rootEnvPath||e.envPaths?.schemaEnvPath?`
|
|
14
14
|
env = {${e.envPaths?.rootEnvPath?`
|
|
@@ -17,4 +17,4 @@ generator ${e.name} {
|
|
|
17
17
|
}`:""}
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
${r}`;return r}async write(){await this.#e.fs.
|
|
20
|
+
${r}`;return r}async write(){await this.#e.fs.write(this.#e.config.prisma.schema,this.build());}}export{P as PrismaSchemaCreator};
|