@prisma/orm-toolchain 8.0.0-rc.14-dev.2 → 8.0.0-rc.14-dev.4
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/cli-telemetry.mjs +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +7 -7
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__migration-cli.mjs +1 -1
- package/dist/config-loader.d.mts +1 -1
- package/dist/config-loader.mjs +1 -1
- package/dist/{exports-uIufkd50.mjs → exports-Bjl3d71N.mjs} +6 -2
- package/dist/exports-Bjl3d71N.mjs.map +1 -0
- package/dist/{exports-V-9OgHnQ.mjs → exports-CyixGARy.mjs} +27 -8
- package/dist/exports-CyixGARy.mjs.map +1 -0
- package/dist/{index-CQm4jQjG.d.mts → index-DVcYlnHq.d.mts} +4 -1
- package/dist/index-DVcYlnHq.d.mts.map +1 -0
- package/dist/{ref-EXO_pTtx-DOX1lJKh.mjs → ref-EXO_pTtx-fVrc22ZG.mjs} +2 -2
- package/dist/{ref-EXO_pTtx-DOX1lJKh.mjs.map → ref-EXO_pTtx-fVrc22ZG.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +2 -2
- package/package.json +12 -12
- package/dist/exports-V-9OgHnQ.mjs.map +0 -1
- package/dist/exports-uIufkd50.mjs.map +0 -1
- package/dist/index-CQm4jQjG.d.mts.map +0 -1
package/dist/cli-telemetry.mjs
CHANGED
|
@@ -42,7 +42,7 @@ async function loadProjectConfig(projectRoot) {
|
|
|
42
42
|
const orm = config["orm"];
|
|
43
43
|
if (orm === null || typeof orm !== "object" || Array.isArray(orm)) return EMPTY_PROJECT_CONFIG;
|
|
44
44
|
config = blindCast(orm);
|
|
45
|
-
const { validateOrmSection } = await import("./exports-
|
|
45
|
+
const { validateOrmSection } = await import("./exports-Bjl3d71N.mjs").then((n) => n.a);
|
|
46
46
|
const validation = validateOrmSection(config, {
|
|
47
47
|
files: [],
|
|
48
48
|
keys: {}
|
package/dist/cli.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as ormConfigSection } from "./index-
|
|
1
|
+
import { v as ormConfigSection } from "./index-DVcYlnHq.mjs";
|
|
2
2
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
3
3
|
import { LoadedConfig } from "@prisma/cli-engine";
|
|
4
4
|
//#region ../../../1-framework/3-tooling/cli/dist/exports/index.d.mts
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as requireConfigSections, i as expandContractInputs, m as ormConfigSection, n as buildLoadedConfig, r as evaluateConfigModule, s as globContractInputMatching, u as loadConfigFiles } from "./exports-
|
|
1
|
+
import { h as requireConfigSections, i as expandContractInputs, m as ormConfigSection, n as buildLoadedConfig, r as evaluateConfigModule, s as globContractInputMatching, u as loadConfigFiles } from "./exports-Bjl3d71N.mjs";
|
|
2
2
|
import { r as getEmittedArtifactPaths } from "./exports-Bx-2JeW0-BHlN6Av7.mjs";
|
|
3
3
|
import { t as MigrationToolsError } from "./errors-DD6iLGXk-6I9PqjpZ.mjs";
|
|
4
4
|
import { t as contractSnapshotDir } from "./contract-snapshot-store-1S_6vaGt-FrXDiBEd.mjs";
|
|
@@ -6,7 +6,7 @@ import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
|
6
6
|
import { r as readRef } from "./refs-qwvw4_dV-DNg_7WTD.mjs";
|
|
7
7
|
import { c as spaceMigrationDirectory } from "./verify-contract-spaces-CYjc343k-DHy5xtKR.mjs";
|
|
8
8
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-BB3GzIi-.mjs";
|
|
9
|
-
import { $ as executeRefListCommand, A as errorDriverRequired, At as resolveContractRefToSnapshot, B as errorRuntime, Bt as sourceWarningDiagnostic, C as errorConfigValidation$1, Ct as refuseMarkerOutsideGraph, D as errorContractValidationFailed, Dt as requireLiveDatabase, E as errorContractConfigMissing, Et as refuseUnknownInvariants, F as errorMigrationPackageNotFound, H as errorTargetMismatch, Ht as targetSupportsMigrations, I as errorMigrationPlanningFailed, It as runMigrationCheck, J as executeMigrateShowPlan, L as errorNoMigrations, Lt as runMigrationList, M as errorHashMismatch, Mt as resolveMigrationRef, N as errorLegendHumanOnly, O as errorDatabaseConnectionRequired, Ot as resolveAppTargetPath, P as errorMarkerMissing, Pt as runCommandAction, Q as executeRefDeleteCommand, R as errorPathUnreachable, Rt as sanitizeErrorMessage, S as errorAdvanceRefArgConflict, T as errorContractArgConflict, Tt as refusePackageCorruptionOnAggregate, U as errorUnexpected, Ut as toDeclaredExtensionsFromRaw, V as errorTargetMigrationNotSupported, Vt as statusForMigrationHash, W as executeContractEmit, Wt as validateLoadedContract, X as executeMigrationPlanCommand, Y as executeMigrationNewCommand, _ as createControlClient, _t as preflightRefAdvancement, a as NO_REF_ADVANCEMENT, at as loadAggregateIntegrityViolations, bt as redactUrlCredentials, c as appliedHashesFromLedger, ct as loadContractSourceWithStack, d as buildReadAggregate, dt as mapCaughtMigrationError, et as executeRefSetCommand, f as buildRefAdvancementFields, ft as mapContractAtError, g as computeRefAdvancementName, gt as originHashForStatus, h as closeQuietly, ht as migrationSpaceListEntriesFromAggregate, i as ERROR_CODE_DESTRUCTIVE_CHANGES, it as listRefsByContractHash, j as errorFileNotFound, k as errorDestructiveChanges, kt as resolveContractRef$1, lt as loadContractSpaceAggregateForCli, m as chooseAction, mt as maskConnectionUrl, n as CliStructuredError$1$1, nt as formatSourceDiagnostic, o as advanceRefSafely, ot as loadContractRawSafely, p as checkSingleTarget, r as DB_UPDATE_POLICY, rt as hasMigrationPath, st as loadContractSource, t as ActionableCliError, tt as findPackageByDirPath, u as buildMigrationSpaceGraphEntries, ut as looksLikePath, v as deriveStatusEdgeAnnotations, vt as readContractEnvelope, w as errorConsentPlanMismatch, wt as refuseMissingInvariantPath, x as enumerateCheckSpaces, xt as refuseContractSpaceIntegrity, yt as readMigrationRefs, z as errorRunnerFailed, zt as snapshotVerifierFor } from "./ref-EXO_pTtx-
|
|
9
|
+
import { $ as executeRefListCommand, A as errorDriverRequired, At as resolveContractRefToSnapshot, B as errorRuntime, Bt as sourceWarningDiagnostic, C as errorConfigValidation$1, Ct as refuseMarkerOutsideGraph, D as errorContractValidationFailed, Dt as requireLiveDatabase, E as errorContractConfigMissing, Et as refuseUnknownInvariants, F as errorMigrationPackageNotFound, H as errorTargetMismatch, Ht as targetSupportsMigrations, I as errorMigrationPlanningFailed, It as runMigrationCheck, J as executeMigrateShowPlan, L as errorNoMigrations, Lt as runMigrationList, M as errorHashMismatch, Mt as resolveMigrationRef, N as errorLegendHumanOnly, O as errorDatabaseConnectionRequired, Ot as resolveAppTargetPath, P as errorMarkerMissing, Pt as runCommandAction, Q as executeRefDeleteCommand, R as errorPathUnreachable, Rt as sanitizeErrorMessage, S as errorAdvanceRefArgConflict, T as errorContractArgConflict, Tt as refusePackageCorruptionOnAggregate, U as errorUnexpected, Ut as toDeclaredExtensionsFromRaw, V as errorTargetMigrationNotSupported, Vt as statusForMigrationHash, W as executeContractEmit, Wt as validateLoadedContract, X as executeMigrationPlanCommand, Y as executeMigrationNewCommand, _ as createControlClient, _t as preflightRefAdvancement, a as NO_REF_ADVANCEMENT, at as loadAggregateIntegrityViolations, bt as redactUrlCredentials, c as appliedHashesFromLedger, ct as loadContractSourceWithStack, d as buildReadAggregate, dt as mapCaughtMigrationError, et as executeRefSetCommand, f as buildRefAdvancementFields, ft as mapContractAtError, g as computeRefAdvancementName, gt as originHashForStatus, h as closeQuietly, ht as migrationSpaceListEntriesFromAggregate, i as ERROR_CODE_DESTRUCTIVE_CHANGES, it as listRefsByContractHash, j as errorFileNotFound, k as errorDestructiveChanges, kt as resolveContractRef$1, lt as loadContractSpaceAggregateForCli, m as chooseAction, mt as maskConnectionUrl, n as CliStructuredError$1$1, nt as formatSourceDiagnostic, o as advanceRefSafely, ot as loadContractRawSafely, p as checkSingleTarget, r as DB_UPDATE_POLICY, rt as hasMigrationPath, st as loadContractSource, t as ActionableCliError, tt as findPackageByDirPath, u as buildMigrationSpaceGraphEntries, ut as looksLikePath, v as deriveStatusEdgeAnnotations, vt as readContractEnvelope, w as errorConsentPlanMismatch, wt as refuseMissingInvariantPath, x as enumerateCheckSpaces, xt as refuseContractSpaceIntegrity, yt as readMigrationRefs, z as errorRunnerFailed, zt as snapshotVerifierFor } from "./ref-EXO_pTtx-fVrc22ZG.mjs";
|
|
10
10
|
import { a as PRISMA7_QUICK_REFERENCE_STEP, i as PRISMA7_LOOP_STEP, n as InitOutputSchema, o as buildNextSteps, r as NEXT_STEPS_BEFORE_SCAFFOLD, t as DB_SIGN_STEP } from "./output-BcC8eB0h-C5bRd-aC.mjs";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -35,7 +35,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
|
35
35
|
import stringWidth from "string-width";
|
|
36
36
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
37
37
|
import { build } from "esbuild";
|
|
38
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
38
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-MmGZmb69.mjs
|
|
39
39
|
/**
|
|
40
40
|
* `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the
|
|
41
41
|
* regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts
|
|
@@ -2811,7 +2811,7 @@ function resolveNewline(formatterNewline, eol) {
|
|
|
2811
2811
|
if (formatterNewline !== void 0) return formatterNewline;
|
|
2812
2812
|
return eol === "\r\n" ? "CRLF" : "LF";
|
|
2813
2813
|
}
|
|
2814
|
-
async function formatOneFile(inputPath, formatOptions) {
|
|
2814
|
+
async function formatOneFile(inputPath, formatOptions, parserOptions) {
|
|
2815
2815
|
let contents;
|
|
2816
2816
|
try {
|
|
2817
2817
|
contents = await readFile(inputPath, "utf-8");
|
|
@@ -2824,7 +2824,7 @@ async function formatOneFile(inputPath, formatOptions) {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
let formatted;
|
|
2826
2826
|
try {
|
|
2827
|
-
formatted = format(contents, formatOptions);
|
|
2827
|
+
formatted = format(contents, formatOptions, parserOptions);
|
|
2828
2828
|
} catch (error) {
|
|
2829
2829
|
if (isStructuredError(error) && error.code === "PSL.PARSE_FAILED") return notOk(errorRuntime("PSL.PARSE_FAILED", "Cannot format PSL with parse errors", {
|
|
2830
2830
|
why: error.message,
|
|
@@ -2871,7 +2871,7 @@ async function executeFormat(options) {
|
|
|
2871
2871
|
const failures = [];
|
|
2872
2872
|
const files = (await Promise.all(resolvedInputs.map(pslFilesOf))).flat();
|
|
2873
2873
|
for (const inputPath of files) {
|
|
2874
|
-
const outcome = await formatOneFile(inputPath, formatOptions);
|
|
2874
|
+
const outcome = await formatOneFile(inputPath, formatOptions, source.parserOptions);
|
|
2875
2875
|
if (outcome.ok) paths.push(outcome.value);
|
|
2876
2876
|
else failures.push(outcome.failure);
|
|
2877
2877
|
}
|
|
@@ -6586,7 +6586,7 @@ const lspCommand = defineServerCommand({
|
|
|
6586
6586
|
} },
|
|
6587
6587
|
handler: async (args, io) => {
|
|
6588
6588
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
6589
|
-
const { startServer } = await import("./exports-
|
|
6589
|
+
const { startServer } = await import("./exports-CyixGARy.mjs");
|
|
6590
6590
|
return startServer({
|
|
6591
6591
|
stdin: io.stdin,
|
|
6592
6592
|
stdout: io.stdout,
|