@prisma/orm-toolchain 8.0.0-rc.4-dev.1 → 8.0.0-rc.4-dev.2
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.mjs +5 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +3 -3
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/{ref-dWFulULw-TMeX1ZM1.mjs → ref-DJkSkzAt-a9gIu2Gt.mjs} +23 -22
- package/dist/ref-DJkSkzAt-a9gIu2Gt.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/ref-dWFulULw-TMeX1ZM1.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { r as getEmittedArtifactPaths } from "./exports-Dw2WIX63-CQgI2e_L.mjs";
|
|
|
2
2
|
import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
3
3
|
import { c as spaceMigrationDirectory } from "./verify-contract-spaces-DomK5uP5-CyI3hD3Q.mjs";
|
|
4
4
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-D0H8HuRw.mjs";
|
|
5
|
-
import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-
|
|
5
|
+
import { $ as loadContractRawSafely, A as errorMigrationPlanningFailed, At as statusForMigrationHash, C as errorDestructiveChanges, Ct as resolveRefAdvancementFields, D as errorLegendHumanOnly, Dt as runMigrationCheck, E as errorHashMismatch, F as errorTargetMigrationNotSupported, H as executeMigrateShowPlan, I as errorTargetMismatch, J as executeRefSetCommand, K as executeRefDeleteCommand, L as errorUnexpected, M as errorPathUnreachable, Mt as toDeclaredExtensionsFromRaw, N as errorRunnerFailed, O as errorMarkerMissing, Ot as runMigrationList, P as errorRuntime, Q as loadAggregateIntegrityViolations, R as executeContractEmit, S as errorDatabaseConnectionRequired, St as resolveMigrationRef, T as errorFileNotFound, Tt as runCommandAction, U as executeMigrationNewCommand, W as executeMigrationPlanCommand, X as hasMigrationPath, Y as findPackageByDirPath, Z as listRefsByContractHash, _ as enumerateCheckSpaces, _t as requireLiveDatabase, at as maskConnectionUrl, b as errorContractArgConflict, bt as resolveContractRefToSnapshot, ct as readContractEnvelope, d as closeQuietly, dt as refuseContractSpaceIntegrity, et as loadContractSpaceAggregateForCli, gt as refuseUnknownInvariants, ht as refusePackageCorruptionOnAggregate, i as appliedHashesFromLedger, j as errorNoMigrations, jt as targetSupportsMigrations, k as errorMigrationPackageNotFound, kt as sanitizeErrorMessage, l as checkSingleTarget, lt as readContractIR, m as deriveStatusEdgeAnnotations, mt as refuseMissingInvariantPath, n as advanceRefSafely, nt as mapCaughtMigrationError, o as buildMigrationSpaceGraphEntries, ot as migrationSpaceListEntriesFromAggregate, p as createControlClient, pt as refuseMarkerOutsideGraph, q as executeRefListCommand, rt as mapContractAtError, s as buildReadAggregate, st as originHashForStatus, t as CliStructuredError$1$1, tt as looksLikePath, u as chooseAction, ut as readMigrationRefs, v as errorConfigValidation$1, vt as resolveAppTargetPath, w as errorDriverRequired, x as errorContractValidationFailed, y as errorConsentPlanMismatch, yt as resolveContractRef$1 } from "./ref-DJkSkzAt-a9gIu2Gt.mjs";
|
|
6
6
|
import { n as buildNextSteps, t as InitOutputSchema } from "./output-CovTDY14-CUoAqLML.mjs";
|
|
7
7
|
import { r as loadConfig, t as finalizeConfig } from "./exports-Cv8nMmBT.mjs";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
@@ -32,8 +32,8 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
|
32
32
|
import stringWidth from "string-width";
|
|
33
33
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
34
34
|
import { build } from "esbuild";
|
|
35
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
36
|
-
var version = "8.0.0-rc.4-dev.
|
|
35
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-CpH_zMnz.mjs
|
|
36
|
+
var version = "8.0.0-rc.4-dev.2";
|
|
37
37
|
const MISSING_CONFIG_ACTION = {
|
|
38
38
|
kind: "run-command",
|
|
39
39
|
label: "Create a config file",
|
|
@@ -7627,7 +7627,7 @@ function createMigrateCommand(createClient) {
|
|
|
7627
7627
|
const integrityFailure = refuseContractSpaceIntegrity(aggregate, {
|
|
7628
7628
|
declaredExtensions: toDeclaredExtensionsFromRaw(castAs(ctx.config.extensions ?? [])),
|
|
7629
7629
|
checkContracts: true
|
|
7630
|
-
});
|
|
7630
|
+
}, migrationsDir);
|
|
7631
7631
|
if (integrityFailure) return notOk$1(normalizeError(integrityFailure));
|
|
7632
7632
|
const target = resolveRequestedTarget(args.flags.to, aggregate.app.refs, aggregate.app.graph());
|
|
7633
7633
|
if (!target.ok) return notOk$1(target.failure);
|
|
@@ -9157,7 +9157,7 @@ const migrationStatusCommand = defineOrmCommand({
|
|
|
9157
9157
|
findings.push(contractUnreadableFinding(error instanceof Error ? error.message : "unknown error"));
|
|
9158
9158
|
}
|
|
9159
9159
|
if (await loadContractRawSafely(contractConfig) !== null) {
|
|
9160
|
-
const corruption = refusePackageCorruptionOnAggregate(aggregate);
|
|
9160
|
+
const corruption = refusePackageCorruptionOnAggregate(aggregate, migrationsDir);
|
|
9161
9161
|
if (corruption) return notOk$1(normalizeError(corruption));
|
|
9162
9162
|
}
|
|
9163
9163
|
const appGraph = aggregate.app.graph();
|