@powerlines/plugin-prisma 0.4.90 → 0.4.91
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-schema.mjs","names":[],"sources":["../../src/helpers/get-schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getBinaryTargetForCurrentPlatform } from \"@prisma/get-platform\";\nimport prismaSchemaWasm from \"@prisma/prisma-schema-wasm\";\nimport * as E from \"fp-ts/Either\";\nimport { pipe } from \"fp-ts/lib/function\";\nimport { match } from \"ts-pattern\";\nimport {\n GeneratorConfig,\n GetSchemaResponse,\n PrismaSchema\n} from \"../types/prisma\";\n\nasync function resolveBinaryTargets(generator: GeneratorConfig) {\n for (const binaryTarget of generator.binaryTargets) {\n // load the binaryTargets from the env var\n if (binaryTarget.fromEnvVar && process.env[binaryTarget.fromEnvVar]) {\n const value = JSON.parse(process.env[binaryTarget.fromEnvVar]!);\n\n if (Array.isArray(value)) {\n generator.binaryTargets = value.map(v => ({\n fromEnvVar: null,\n value: v\n }));\n await resolveBinaryTargets(generator); // resolve again if we have native\n } else {\n binaryTarget.value = value;\n }\n }\n\n // resolve native to the current platform\n if (binaryTarget.value === \"native\") {\n binaryTarget.value = await getBinaryTargetForCurrentPlatform();\n binaryTarget.native = true;\n }\n }\n\n if (generator.binaryTargets.length === 0) {\n generator.binaryTargets = [\n {\n fromEnvVar: null,\n value: await getBinaryTargetForCurrentPlatform(),\n native: true\n }\n ];\n }\n}\n\n/**\n * Retrieves the Prisma schema using the provided options.\n *\n * @param schemaPath - The path to the Prisma schema file.\n * @returns The Prisma schema.\n */\nasync function resolveDataModel(schemaPath: string) {\n const configEither = pipe(\n E.tryCatch(\n () => {\n if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {\n prismaSchemaWasm.debug_panic();\n }\n\n const params = JSON.stringify({\n prismaSchema: schemaPath,\n datasourceOverrides: {},\n ignoreEnvVarErrors: true,\n env: process.env\n });\n\n const data = prismaSchemaWasm.get_config(params);\n\n return data;\n },\n e => ({\n type: \"wasm-error\" as const,\n reason: \"(get-config wasm)\",\n error: e as Error\n })\n ),\n E.map(result => ({ result })),\n E.chainW(({ result }) =>\n // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings\n E.tryCatch(\n () => JSON.parse(result) as GetSchemaResponse,\n e => ({\n type: \"parse-json\" as const,\n reason: \"Unable to parse JSON\",\n error: e as Error\n })\n )\n ),\n E.chainW(response => {\n if (response.errors.length > 0) {\n return E.left({\n type: \"validation-error\" as const,\n reason: \"(get-config wasm)\",\n error: response.errors\n });\n }\n return E.right(response.config);\n })\n );\n\n if (E.isRight(configEither)) {\n const { right: data } = configEither;\n\n for (const generator of data.generators) {\n await resolveBinaryTargets(generator);\n }\n\n return Promise.resolve(data);\n }\n\n throw match(configEither.left)\n .with({ type: \"wasm-error\" }, e => {\n return new Error(\n `Prisma get-config Wasm runtime error: ${e.error.message}`\n );\n })\n .with({ type: \"validation-error\" }, e => {\n return new Error(\n `Prisma get-config validation error: ${e.error\n .map(err => err.message)\n .join(\", \")}`\n );\n })\n .otherwise(e => {\n return new Error(\n `Prisma get-config unknown error: ${e.reason} - ${e.error.message}`\n );\n });\n}\n\n/**\n * Retrieves the Prisma schema using the provided path.\n *\n * @param path - The path to the Prisma schema file.\n * @returns The Prisma schema.\n */\nexport async function getSchema(path: string): Promise<PrismaSchema> {\n const schema = {\n path,\n content: \"\",\n generators: [],\n datasources: [],\n warnings: []\n } as PrismaSchema;\n\n const dataModel = await resolveDataModel(path);\n\n return { ...schema, ...dataModel };\n}\n"],"mappings":";;;;;;;AA6BA,eAAe,qBAAqB,WAA4B;AAC9D,MAAK,MAAM,gBAAgB,UAAU,eAAe;AAElD,MAAI,aAAa,cAAc,QAAQ,IAAI,aAAa,aAAa;GACnE,MAAM,QAAQ,KAAK,MAAM,QAAQ,IAAI,aAAa,YAAa;AAE/D,OAAI,MAAM,QAAQ,MAAM,EAAE;AACxB,cAAU,gBAAgB,MAAM,KAAI,OAAM;KACxC,YAAY;KACZ,OAAO;KACR,EAAE;AACH,UAAM,qBAAqB,UAAU;SAErC,cAAa,QAAQ;;AAKzB,MAAI,aAAa,UAAU,UAAU;AACnC,gBAAa,QAAQ,MAAM,mCAAmC;AAC9D,gBAAa,SAAS;;;AAI1B,KAAI,UAAU,cAAc,WAAW,EACrC,WAAU,gBAAgB,CACxB;EACE,YAAY;EACZ,OAAO,MAAM,mCAAmC;EAChD,QAAQ;EACT,CACF;;;;;;;;AAUL,eAAe,iBAAiB,YAAoB;CAClD,MAAM,eAAe,KACnB,EAAE,eACM;AACJ,MAAI,QAAQ,IAAI,oCACd,kBAAiB,aAAa;EAGhC,MAAM,SAAS,KAAK,UAAU;GAC5B,cAAc;GACd,qBAAqB,EAAE;GACvB,oBAAoB;GACpB,KAAK,QAAQ;GACd,CAAC;AAIF,SAFa,iBAAiB,WAAW,
|
|
1
|
+
{"version":3,"file":"get-schema.mjs","names":[],"sources":["../../src/helpers/get-schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getBinaryTargetForCurrentPlatform } from \"@prisma/get-platform\";\nimport prismaSchemaWasm from \"@prisma/prisma-schema-wasm\";\nimport * as E from \"fp-ts/Either\";\nimport { pipe } from \"fp-ts/lib/function\";\nimport { match } from \"ts-pattern\";\nimport {\n GeneratorConfig,\n GetSchemaResponse,\n PrismaSchema\n} from \"../types/prisma\";\n\nasync function resolveBinaryTargets(generator: GeneratorConfig) {\n for (const binaryTarget of generator.binaryTargets) {\n // load the binaryTargets from the env var\n if (binaryTarget.fromEnvVar && process.env[binaryTarget.fromEnvVar]) {\n const value = JSON.parse(process.env[binaryTarget.fromEnvVar]!);\n\n if (Array.isArray(value)) {\n generator.binaryTargets = value.map(v => ({\n fromEnvVar: null,\n value: v\n }));\n await resolveBinaryTargets(generator); // resolve again if we have native\n } else {\n binaryTarget.value = value;\n }\n }\n\n // resolve native to the current platform\n if (binaryTarget.value === \"native\") {\n binaryTarget.value = await getBinaryTargetForCurrentPlatform();\n binaryTarget.native = true;\n }\n }\n\n if (generator.binaryTargets.length === 0) {\n generator.binaryTargets = [\n {\n fromEnvVar: null,\n value: await getBinaryTargetForCurrentPlatform(),\n native: true\n }\n ];\n }\n}\n\n/**\n * Retrieves the Prisma schema using the provided options.\n *\n * @param schemaPath - The path to the Prisma schema file.\n * @returns The Prisma schema.\n */\nasync function resolveDataModel(schemaPath: string) {\n const configEither = pipe(\n E.tryCatch(\n () => {\n if (process.env.FORCE_PANIC_QUERY_ENGINE_GET_CONFIG) {\n prismaSchemaWasm.debug_panic();\n }\n\n const params = JSON.stringify({\n prismaSchema: schemaPath,\n datasourceOverrides: {},\n ignoreEnvVarErrors: true,\n env: process.env\n });\n\n const data = prismaSchemaWasm.get_config(params);\n\n return data;\n },\n e => ({\n type: \"wasm-error\" as const,\n reason: \"(get-config wasm)\",\n error: e as Error\n })\n ),\n E.map(result => ({ result })),\n E.chainW(({ result }) =>\n // NOTE: this should never fail, as we expect returned values to be valid JSON-serializable strings\n E.tryCatch(\n () => JSON.parse(result) as GetSchemaResponse,\n e => ({\n type: \"parse-json\" as const,\n reason: \"Unable to parse JSON\",\n error: e as Error\n })\n )\n ),\n E.chainW(response => {\n if (response.errors.length > 0) {\n return E.left({\n type: \"validation-error\" as const,\n reason: \"(get-config wasm)\",\n error: response.errors\n });\n }\n return E.right(response.config);\n })\n );\n\n if (E.isRight(configEither)) {\n const { right: data } = configEither;\n\n for (const generator of data.generators) {\n await resolveBinaryTargets(generator);\n }\n\n return Promise.resolve(data);\n }\n\n throw match(configEither.left)\n .with({ type: \"wasm-error\" }, e => {\n return new Error(\n `Prisma get-config Wasm runtime error: ${e.error.message}`\n );\n })\n .with({ type: \"validation-error\" }, e => {\n return new Error(\n `Prisma get-config validation error: ${e.error\n .map(err => err.message)\n .join(\", \")}`\n );\n })\n .otherwise(e => {\n return new Error(\n `Prisma get-config unknown error: ${e.reason} - ${e.error.message}`\n );\n });\n}\n\n/**\n * Retrieves the Prisma schema using the provided path.\n *\n * @param path - The path to the Prisma schema file.\n * @returns The Prisma schema.\n */\nexport async function getSchema(path: string): Promise<PrismaSchema> {\n const schema = {\n path,\n content: \"\",\n generators: [],\n datasources: [],\n warnings: []\n } as PrismaSchema;\n\n const dataModel = await resolveDataModel(path);\n\n return { ...schema, ...dataModel };\n}\n"],"mappings":";;;;;;;AA6BA,eAAe,qBAAqB,WAA4B;AAC9D,MAAK,MAAM,gBAAgB,UAAU,eAAe;AAElD,MAAI,aAAa,cAAc,QAAQ,IAAI,aAAa,aAAa;GACnE,MAAM,QAAQ,KAAK,MAAM,QAAQ,IAAI,aAAa,YAAa;AAE/D,OAAI,MAAM,QAAQ,MAAM,EAAE;AACxB,cAAU,gBAAgB,MAAM,KAAI,OAAM;KACxC,YAAY;KACZ,OAAO;KACR,EAAE;AACH,UAAM,qBAAqB,UAAU;SAErC,cAAa,QAAQ;;AAKzB,MAAI,aAAa,UAAU,UAAU;AACnC,gBAAa,QAAQ,MAAM,mCAAmC;AAC9D,gBAAa,SAAS;;;AAI1B,KAAI,UAAU,cAAc,WAAW,EACrC,WAAU,gBAAgB,CACxB;EACE,YAAY;EACZ,OAAO,MAAM,mCAAmC;EAChD,QAAQ;EACT,CACF;;;;;;;;AAUL,eAAe,iBAAiB,YAAoB;CAClD,MAAM,eAAe,KACnB,EAAE,eACM;AACJ,MAAI,QAAQ,IAAI,oCACd,kBAAiB,aAAa;EAGhC,MAAM,SAAS,KAAK,UAAU;GAC5B,cAAc;GACd,qBAAqB,EAAE;GACvB,oBAAoB;GACpB,KAAK,QAAQ;GACd,CAAC;AAIF,SAFa,iBAAiB,WAAW,OAE9B;KAEb,OAAM;EACJ,MAAM;EACN,QAAQ;EACR,OAAO;EACR,EACF,EACD,EAAE,KAAI,YAAW,EAAE,QAAQ,EAAE,EAC7B,EAAE,QAAQ,EAAE,aAEV,EAAE,eACM,KAAK,MAAM,OAAO,GACxB,OAAM;EACJ,MAAM;EACN,QAAQ;EACR,OAAO;EACR,EACF,CACF,EACD,EAAE,QAAO,aAAY;AACnB,MAAI,SAAS,OAAO,SAAS,EAC3B,QAAO,EAAE,KAAK;GACZ,MAAM;GACN,QAAQ;GACR,OAAO,SAAS;GACjB,CAAC;AAEJ,SAAO,EAAE,MAAM,SAAS,OAAO;GAC/B,CACH;AAED,KAAI,EAAE,QAAQ,aAAa,EAAE;EAC3B,MAAM,EAAE,OAAO,SAAS;AAExB,OAAK,MAAM,aAAa,KAAK,WAC3B,OAAM,qBAAqB,UAAU;AAGvC,SAAO,QAAQ,QAAQ,KAAK;;AAG9B,OAAM,MAAM,aAAa,KAAK,CAC3B,KAAK,EAAE,MAAM,cAAc,GAAE,MAAK;AACjC,yBAAO,IAAI,MACT,yCAAyC,EAAE,MAAM,UAClD;GACD,CACD,KAAK,EAAE,MAAM,oBAAoB,GAAE,MAAK;AACvC,yBAAO,IAAI,MACT,uCAAuC,EAAE,MACtC,KAAI,QAAO,IAAI,QAAQ,CACvB,KAAK,KAAK,GACd;GACD,CACD,WAAU,MAAK;AACd,yBAAO,IAAI,MACT,oCAAoC,EAAE,OAAO,KAAK,EAAE,MAAM,UAC3D;GACD;;;;;;;;AASN,eAAsB,UAAU,MAAqC;CACnE,MAAM,SAAS;EACb;EACA,SAAS;EACT,YAAY,EAAE;EACd,aAAa,EAAE;EACf,UAAU,EAAE;EACb;CAED,MAAM,YAAY,MAAM,iBAAiB,KAAK;AAE9C,QAAO;EAAE,GAAG;EAAQ,GAAG;EAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-sql.mjs","names":["migrateIntrospectSql"],"sources":["../../src/helpers/typed-sql.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n inferDirectoryConfig,\n isValidJsIdentifier,\n PrismaConfigWithDatasource\n} from \"@prisma/internals\";\nimport {\n IntrospectSqlInput,\n introspectSql as migrateIntrospectSql\n} from \"@prisma/migrate\";\nimport {\n findFileExtension,\n findFileName,\n relativePath\n} from \"@stryke/path/file-path-fns\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { PrismaPluginContext } from \"../types/plugin\";\n\nasync function readTypedSqlFiles(\n context: PrismaPluginContext,\n typedSqlDirPath: string\n): Promise<IntrospectSqlInput[]> {\n const files = await context.fs.list(typedSqlDirPath);\n const results: IntrospectSqlInput[] = [];\n for (const fileName of files) {\n if (findFileExtension(fileName) !== \".sql\") {\n continue;\n }\n\n if (\n !isValidJsIdentifier(findFileName(fileName, { withExtension: false }))\n ) {\n throw new Error(\n `${joinPaths(typedSqlDirPath, fileName)} can not be used as a typed sql query: name must be a valid JS identifier`\n );\n }\n if (findFileName(fileName).startsWith(\"$\")) {\n throw new Error(\n `${joinPaths(typedSqlDirPath, fileName)} can not be used as a typed sql query: name must not start with $`\n );\n }\n\n results.push({\n name: findFileName(fileName, { withExtension: false }),\n source: (await context.fs.read(joinPaths(typedSqlDirPath, fileName)))!,\n fileName: joinPaths(typedSqlDirPath, fileName)\n });\n }\n\n return results;\n}\n\nexport async function introspectSql(context: PrismaPluginContext) {\n const directoryConfig = inferDirectoryConfig(\n context.prisma.schema,\n context.prisma.config\n );\n const sqlFiles = await readTypedSqlFiles(\n context,\n directoryConfig.typedSqlDirPath\n );\n\n const introspectionResult = await migrateIntrospectSql(\n context.prisma.schema,\n context.prisma.config as PrismaConfigWithDatasource,\n context.config.root,\n sqlFiles\n );\n if (introspectionResult.ok) {\n return introspectionResult.queries;\n }\n\n const lines: string[] = [`Errors while reading sql files:\\n`];\n for (const { fileName, message } of introspectionResult.errors) {\n lines.push(`In ${relativePath(process.cwd(), fileName)}:`);\n lines.push(message);\n lines.push(\"\");\n }\n\n throw new Error(lines.join(\"\\n\"));\n}\n"],"mappings":";;;;;;AAmCA,eAAe,kBACb,SACA,iBAC+B;CAC/B,MAAM,QAAQ,MAAM,QAAQ,GAAG,KAAK,gBAAgB;CACpD,MAAM,UAAgC,EAAE;AACxC,MAAK,MAAM,YAAY,OAAO;AAC5B,MAAI,kBAAkB,SAAS,KAAK,OAClC;AAGF,MACE,CAAC,oBAAoB,aAAa,UAAU,EAAE,eAAe,OAAO,CAAC,CAAC,CAEtE,OAAM,IAAI,MACR,GAAG,UAAU,iBAAiB,SAAS,CAAC,2EACzC;AAEH,MAAI,aAAa,SAAS,CAAC,WAAW,IAAI,CACxC,OAAM,IAAI,MACR,GAAG,UAAU,iBAAiB,SAAS,CAAC,mEACzC;AAGH,UAAQ,KAAK;GACX,MAAM,aAAa,UAAU,EAAE,eAAe,OAAO,CAAC;GACtD,QAAS,MAAM,QAAQ,GAAG,KAAK,UAAU,iBAAiB,SAAS,CAAC;GACpE,UAAU,UAAU,iBAAiB,SAAS;GAC/C,CAAC;;AAGJ,QAAO;;AAGT,eAAsB,cAAc,SAA8B;CAKhE,MAAM,WAAW,MAAM,kBACrB,SALsB,qBACtB,QAAQ,OAAO,QACf,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"typed-sql.mjs","names":["migrateIntrospectSql"],"sources":["../../src/helpers/typed-sql.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n inferDirectoryConfig,\n isValidJsIdentifier,\n PrismaConfigWithDatasource\n} from \"@prisma/internals\";\nimport {\n IntrospectSqlInput,\n introspectSql as migrateIntrospectSql\n} from \"@prisma/migrate\";\nimport {\n findFileExtension,\n findFileName,\n relativePath\n} from \"@stryke/path/file-path-fns\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { PrismaPluginContext } from \"../types/plugin\";\n\nasync function readTypedSqlFiles(\n context: PrismaPluginContext,\n typedSqlDirPath: string\n): Promise<IntrospectSqlInput[]> {\n const files = await context.fs.list(typedSqlDirPath);\n const results: IntrospectSqlInput[] = [];\n for (const fileName of files) {\n if (findFileExtension(fileName) !== \".sql\") {\n continue;\n }\n\n if (\n !isValidJsIdentifier(findFileName(fileName, { withExtension: false }))\n ) {\n throw new Error(\n `${joinPaths(typedSqlDirPath, fileName)} can not be used as a typed sql query: name must be a valid JS identifier`\n );\n }\n if (findFileName(fileName).startsWith(\"$\")) {\n throw new Error(\n `${joinPaths(typedSqlDirPath, fileName)} can not be used as a typed sql query: name must not start with $`\n );\n }\n\n results.push({\n name: findFileName(fileName, { withExtension: false }),\n source: (await context.fs.read(joinPaths(typedSqlDirPath, fileName)))!,\n fileName: joinPaths(typedSqlDirPath, fileName)\n });\n }\n\n return results;\n}\n\nexport async function introspectSql(context: PrismaPluginContext) {\n const directoryConfig = inferDirectoryConfig(\n context.prisma.schema,\n context.prisma.config\n );\n const sqlFiles = await readTypedSqlFiles(\n context,\n directoryConfig.typedSqlDirPath\n );\n\n const introspectionResult = await migrateIntrospectSql(\n context.prisma.schema,\n context.prisma.config as PrismaConfigWithDatasource,\n context.config.root,\n sqlFiles\n );\n if (introspectionResult.ok) {\n return introspectionResult.queries;\n }\n\n const lines: string[] = [`Errors while reading sql files:\\n`];\n for (const { fileName, message } of introspectionResult.errors) {\n lines.push(`In ${relativePath(process.cwd(), fileName)}:`);\n lines.push(message);\n lines.push(\"\");\n }\n\n throw new Error(lines.join(\"\\n\"));\n}\n"],"mappings":";;;;;;AAmCA,eAAe,kBACb,SACA,iBAC+B;CAC/B,MAAM,QAAQ,MAAM,QAAQ,GAAG,KAAK,gBAAgB;CACpD,MAAM,UAAgC,EAAE;AACxC,MAAK,MAAM,YAAY,OAAO;AAC5B,MAAI,kBAAkB,SAAS,KAAK,OAClC;AAGF,MACE,CAAC,oBAAoB,aAAa,UAAU,EAAE,eAAe,OAAO,CAAC,CAAC,CAEtE,OAAM,IAAI,MACR,GAAG,UAAU,iBAAiB,SAAS,CAAC,2EACzC;AAEH,MAAI,aAAa,SAAS,CAAC,WAAW,IAAI,CACxC,OAAM,IAAI,MACR,GAAG,UAAU,iBAAiB,SAAS,CAAC,mEACzC;AAGH,UAAQ,KAAK;GACX,MAAM,aAAa,UAAU,EAAE,eAAe,OAAO,CAAC;GACtD,QAAS,MAAM,QAAQ,GAAG,KAAK,UAAU,iBAAiB,SAAS,CAAC;GACpE,UAAU,UAAU,iBAAiB,SAAS;GAC/C,CAAC;;AAGJ,QAAO;;AAGT,eAAsB,cAAc,SAA8B;CAKhE,MAAM,WAAW,MAAM,kBACrB,SALsB,qBACtB,QAAQ,OAAO,QACf,QAAQ,OAAO,OAIA,CAAC,gBACjB;CAED,MAAM,sBAAsB,MAAMA,gBAChC,QAAQ,OAAO,QACf,QAAQ,OAAO,QACf,QAAQ,OAAO,MACf,SACD;AACD,KAAI,oBAAoB,GACtB,QAAO,oBAAoB;CAG7B,MAAM,QAAkB,CAAC,oCAAoC;AAC7D,MAAK,MAAM,EAAE,UAAU,aAAa,oBAAoB,QAAQ;AAC9D,QAAM,KAAK,MAAM,aAAa,QAAQ,KAAK,EAAE,SAAS,CAAC,GAAG;AAC1D,QAAM,KAAK,QAAQ;AACnB,QAAM,KAAK,GAAG;;AAGhB,OAAM,IAAI,MAAM,MAAM,KAAK,KAAK,CAAC"}
|
package/dist/package.cjs
CHANGED
package/dist/package.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.91",
|
|
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"],
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"typings": "dist/index.d.mts",
|
|
175
175
|
"files": ["dist/**/*"],
|
|
176
176
|
"dependencies": {
|
|
177
|
-
"@powerlines/plugin-pulumi": "^0.6.
|
|
177
|
+
"@powerlines/plugin-pulumi": "^0.6.50",
|
|
178
178
|
"@prisma/client-generator-registry": "7.6.0",
|
|
179
179
|
"@prisma/config": "7.6.0",
|
|
180
180
|
"@prisma/dmmf": "7.6.0",
|
|
@@ -192,16 +192,16 @@
|
|
|
192
192
|
"defu": "^6.1.7",
|
|
193
193
|
"fp-ts": "^2.16.11",
|
|
194
194
|
"jiti": "^2.6.1",
|
|
195
|
-
"powerlines": "^0.43.
|
|
195
|
+
"powerlines": "^0.43.8",
|
|
196
196
|
"prisma-util": "^2.1.1",
|
|
197
197
|
"ts-pattern": "^5.9.0"
|
|
198
198
|
},
|
|
199
199
|
"devDependencies": {
|
|
200
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
200
|
+
"@powerlines/plugin-plugin": "^0.12.360",
|
|
201
201
|
"@prisma/client-generator-ts": "7.6.0",
|
|
202
|
-
"@pulumi/pulumi": "^3.
|
|
202
|
+
"@pulumi/pulumi": "^3.232.0",
|
|
203
203
|
"@types/node": "^25.6.0"
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "d1efec5f9dce59e05c091b222a91b6b8ba5885d7"
|
|
207
207
|
}
|