@prisma/orm-toolchain 8.0.0-rc.14-dev.13 → 8.0.0-rc.14-dev.15

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.
@@ -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-CkefqB5C.mjs").then((n) => n.a);
45
+ const { validateOrmSection } = await import("./exports-Ca10vlXU.mjs").then((n) => n.a);
46
46
  const validation = validateOrmSection(config, {
47
47
  files: [],
48
48
  keys: {}
package/dist/cli.mjs CHANGED
@@ -1,13 +1,13 @@
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-CkefqB5C.mjs";
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-Ca10vlXU.mjs";
2
2
  import { t as MigrationToolsError } from "./errors-DD6iLGXk-6I9PqjpZ.mjs";
3
3
  import { t as contractSnapshotDir } from "./contract-snapshot-store-1S_6vaGt-CQPNFWho.mjs";
4
4
  import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
5
5
  import { c as spaceMigrationDirectory } from "./verify-contract-spaces-CYjc343k-FXABEJZE.mjs";
6
6
  import { C as errorMarkerMissing, D as errorPathUnreachable, E as errorNoMigrations, G as requireLiveDatabase, H as maskConnectionUrl, J as runCommandAction, L as errorTargetMigrationNotSupported, N as errorRunnerFailed, P as errorRuntime, R as errorTargetMismatch, T as errorMigrationPlanningFailed, U as readContractEnvelope, W as redactUrlCredentials, Y as targetSupportsMigrations, _ as errorFileNotFound, a as closeQuietly, d as errorContractArgConflict, f as errorContractConfigMissing, g as errorDriverRequired, h as errorDestructiveChanges, i as chooseAction, l as errorConfigValidation$1, m as errorDatabaseConnectionRequired, n as CliStructuredError$1$1, p as errorContractValidationFailed, r as ERROR_CODE_DESTRUCTIVE_CHANGES, s as errorAdvanceRefArgConflict, t as ActionableCliError, u as errorConsentPlanMismatch, v as errorFromCaught, w as errorMigrationPackageNotFound, x as errorLegendHumanOnly, y as errorHashMismatch } from "./caught-errors-DulynoX6-BSeStARm.mjs";
7
- import { r as getEmittedArtifactPaths } from "./exports-DXfgwE62-BmuNqWBQ.mjs";
7
+ import { r as getEmittedArtifactPaths } from "./exports-B41NJHCo-BaEu3TXy.mjs";
8
8
  import { r as readRef } from "./refs-qwvw4_dV-X8sR92eT.mjs";
9
9
  import { i as createScaffoldSpecifierResolver } from "./import-roots-BB3GzIi-.mjs";
10
- import { A as hasMigrationPath, B as migrationSpaceListEntriesFromAggregate, C as executeMigrationPlanCommand, D as executeRefSetCommand, E as executeRefListCommand, F as loadContractSourceWithStack, H as preflightRefAdvancement, I as loadContractSpaceAggregateForCli, J as refusePackageCorruptionOnAggregate, K as refuseMarkerOutsideGraph, L as looksLikePath, M as loadAggregateIntegrityViolations, N as loadContractRawSafely, O as findPackageByDirPath, P as loadContractSource, Q as resolveContractRefToSnapshot, R as mapContractAtError, S as executeMigrationNewCommand, T as executeRefDeleteCommand, U as readMigrationRefs, V as originHashForStatus, W as refuseContractSpaceIntegrity, X as resolveAppTargetPath, Y as refuseUnknownInvariants, Z as resolveContractRef$1, _ as executeContractEmit, a as appliedHashesFromLedger, at as snapshotVerifierFor, c as buildReadAggregate, ct as toDeclaredExtensionsFromRaw, d as computeRefAdvancementName, et as resolveMigrationRef, f as createControlClient, g as enumerateCheckSpaces, it as runMigrationList, j as listRefsByContractHash, k as formatSourceDiagnostic, l as buildRefAdvancementFields, lt as validateLoadedContract, n as NO_REF_ADVANCEMENT, ot as sourceWarningDiagnostic, p as deriveStatusEdgeAnnotations, q as refuseMissingInvariantPath, r as advanceRefSafely, rt as runMigrationCheck, s as buildMigrationSpaceGraphEntries, st as statusForMigrationHash, t as DB_UPDATE_POLICY, u as checkSingleTarget, x as executeMigrateShowPlan } from "./ref-BLBgE_oK-CrUDNhYI.mjs";
10
+ import { A as hasMigrationPath, B as migrationSpaceListEntriesFromAggregate, C as executeMigrationPlanCommand, D as executeRefSetCommand, E as executeRefListCommand, F as loadContractSourceWithStack, H as preflightRefAdvancement, I as loadContractSpaceAggregateForCli, J as refusePackageCorruptionOnAggregate, K as refuseMarkerOutsideGraph, L as looksLikePath, M as loadAggregateIntegrityViolations, N as loadContractRawSafely, O as findPackageByDirPath, P as loadContractSource, Q as resolveContractRefToSnapshot, R as mapContractAtError, S as executeMigrationNewCommand, T as executeRefDeleteCommand, U as readMigrationRefs, V as originHashForStatus, W as refuseContractSpaceIntegrity, X as resolveAppTargetPath, Y as refuseUnknownInvariants, Z as resolveContractRef$1, _ as executeContractEmit, a as appliedHashesFromLedger, at as snapshotVerifierFor, c as buildReadAggregate, ct as toDeclaredExtensionsFromRaw, d as computeRefAdvancementName, et as resolveMigrationRef, f as createControlClient, g as enumerateCheckSpaces, it as runMigrationList, j as listRefsByContractHash, k as formatSourceDiagnostic, l as buildRefAdvancementFields, lt as validateLoadedContract, n as NO_REF_ADVANCEMENT, ot as sourceWarningDiagnostic, p as deriveStatusEdgeAnnotations, q as refuseMissingInvariantPath, r as advanceRefSafely, rt as runMigrationCheck, s as buildMigrationSpaceGraphEntries, st as statusForMigrationHash, t as DB_UPDATE_POLICY, u as checkSingleTarget, x as executeMigrateShowPlan } from "./ref-BLBgE_oK-CYZXibbI.mjs";
11
11
  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";
12
12
  import { createRequire } from "node:module";
13
13
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
@@ -36,7 +36,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
36
36
  import stringWidth from "string-width";
37
37
  import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
38
38
  import { build } from "esbuild";
39
- //#region ../../../1-framework/3-tooling/cli/dist/load-config-11jDeqAt.mjs
39
+ //#region ../../../1-framework/3-tooling/cli/dist/load-config-aFHNPNyv.mjs
40
40
  /**
41
41
  * `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the
42
42
  * regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts
@@ -357,7 +357,7 @@ function withCaseSwapped(path) {
357
357
  }
358
358
  /** Whether `existingPath` names the same file with the case of its letters swapped. */
359
359
  async function volumeIgnoresCase(existingPath) {
360
- const swapped = withCaseSwapped(existingPath);
360
+ const swapped = join(dirname(existingPath), withCaseSwapped(basename(existingPath)));
361
361
  if (swapped === existingPath) return false;
362
362
  try {
363
363
  const [original, variant] = await Promise.all([stat(existingPath), stat(swapped)]);
@@ -6727,7 +6727,7 @@ const lspCommand = defineServerCommand({
6727
6727
  } },
6728
6728
  handler: async (args, io) => {
6729
6729
  const exitCode = await withoutClientProcessIdInArgv(async () => {
6730
- const { startServer } = await import("./exports-Czk5PRpV.mjs");
6730
+ const { startServer } = await import("./exports-F_cSTVqK.mjs");
6731
6731
  return startServer({
6732
6732
  stdin: io.stdin,
6733
6733
  stdout: io.stdout,