@prisma/orm-toolchain 8.0.0-rc.20-dev.3 → 8.0.0-rc.20-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.mjs +6 -9
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +12 -16
- package/dist/cli__control-api.d.mts.map +1 -1
- package/dist/cli__control-api.mjs +1 -1
- package/dist/cli__control-api__testing.d.mts +1 -1
- package/dist/{db-sign-gvrl0kFE-D-nTGx88.d.mts → db-sign-D_XlrpfY-BnnlVa7_.d.mts} +4 -2
- package/dist/{db-sign-gvrl0kFE-D-nTGx88.d.mts.map → db-sign-D_XlrpfY-BnnlVa7_.d.mts.map} +1 -1
- package/dist/{ref-DEiY2Cbd-1ZImpUEN.mjs → ref-lBShHvAG-BwIX69xi.mjs} +61 -28
- package/dist/{ref-DEiY2Cbd-1ZImpUEN.mjs.map → ref-lBShHvAG-BwIX69xi.mjs.map} +1 -1
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
package/dist/cli.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import { d as writeRef, r as readRef } from "./refs-DM3q3IZC-BC6H6P0X.mjs";
|
|
|
11
11
|
import { a as contractHashAtMarker } from "./aggregate-T_HG6gq6.mjs";
|
|
12
12
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-BPn2s_fq.mjs";
|
|
13
13
|
import { o as isLiveMarkerRef } from "./ref-resolution-Eo0QHp4f.mjs";
|
|
14
|
-
import { $ as refuseMarkerOutsideGraph, A as executeRefDeleteCommand, B as loadContractRawSafely, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, H as loadContractSourceWithStack, I as isStatementVerb, J as migrationSpaceListEntriesFromAggregate, L as listRefsByContractHash, M as executeRefSetCommand, N as findPackageByDirPath, O as executeMigrationPlanCommand, P as formatSourceDiagnostic, R as liveMarkerUse, U as loadContractSpaceAggregateForCli, V as loadContractSource, W as looksLikePath, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as deriveStatusEdgeAnnotations, _t as statusForMigrationHash, a as advanceRefSafely, at as resolveContractRef$1, b as enumerateCheckSpaces, ct as resolveMigrationRef, d as buildRefAdvancementFields, dt as retryCommandFor, et as refuseMissingInvariantPath, f as checkSingleTarget, g as createControlClient, gt as sourceWarningDiagnostic, h as convertAndDelete, ht as snapshotVerifierFor, i as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, it as resolveAppTargetPath, j as executeRefListCommand, l as buildMigrationSpaceGraphEntries, m as contractValidationMeta, mt as runMigrationList, n as NO_REF_ADVANCEMENT, nt as refuseUnknownInvariants, ot as resolveContractRefToSnapshot, p as computeRefAdvancementName, pt as runMigrationCheck, q as matchConsents, r as RECORDED_CONTRACT_REF_FORMS, rt as requireDatabaseForLiveMarkerUse, s as appliedHashesFromLedger, t as ALL_CONTRACT_REF_FORMS, tt as refusePackageCorruptionOnAggregate, u as buildReadAggregate, vt as toDeclaredExtensionsFromRaw, x as executeContractEmit, yt as validateLoadedContract, z as loadAggregateIntegrityViolations } from "./ref-
|
|
14
|
+
import { $ as refuseMarkerOutsideGraph, A as executeRefDeleteCommand, B as loadContractRawSafely, D as executeMigrationNewCommand, E as executeMigrateShowPlan, F as hasMigrationPath, G as mapContractAtError, H as loadContractSourceWithStack, I as isStatementVerb, J as migrationSpaceListEntriesFromAggregate, L as listRefsByContractHash, M as executeRefSetCommand, N as findPackageByDirPath, O as executeMigrationPlanCommand, P as formatSourceDiagnostic, R as liveMarkerUse, U as loadContractSpaceAggregateForCli, V as loadContractSource, W as looksLikePath, X as readMigrationRefs, Y as preflightRefAdvancement, Z as refuseContractSpaceIntegrity, _ as deriveStatusEdgeAnnotations, _t as statusForMigrationHash, a as advanceRefSafely, at as resolveContractRef$1, b as enumerateCheckSpaces, bt as withWarningFindings, ct as resolveMigrationRef, d as buildRefAdvancementFields, dt as retryCommandFor, et as refuseMissingInvariantPath, f as checkSingleTarget, g as createControlClient, gt as sourceWarningDiagnostic, h as convertAndDelete, ht as snapshotVerifierFor, i as RECORDED_OR_EMPTY_CONTRACT_REF_FORMS, it as resolveAppTargetPath, j as executeRefListCommand, l as buildMigrationSpaceGraphEntries, m as contractValidationMeta, mt as runMigrationList, n as NO_REF_ADVANCEMENT, nt as refuseUnknownInvariants, ot as resolveContractRefToSnapshot, p as computeRefAdvancementName, pt as runMigrationCheck, q as matchConsents, r as RECORDED_CONTRACT_REF_FORMS, rt as requireDatabaseForLiveMarkerUse, s as appliedHashesFromLedger, t as ALL_CONTRACT_REF_FORMS, tt as refusePackageCorruptionOnAggregate, u as buildReadAggregate, vt as toDeclaredExtensionsFromRaw, x as executeContractEmit, yt as validateLoadedContract, z as loadAggregateIntegrityViolations } from "./ref-lBShHvAG-BwIX69xi.mjs";
|
|
15
15
|
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";
|
|
16
16
|
import { createRequire } from "node:module";
|
|
17
17
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
@@ -40,7 +40,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
|
40
40
|
import stringWidth from "string-width";
|
|
41
41
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
42
42
|
import { build } from "esbuild";
|
|
43
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
43
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-CCwIZ4uh.mjs
|
|
44
44
|
const ESCAPES = {
|
|
45
45
|
"\\": "\\\\",
|
|
46
46
|
" ": "\\t",
|
|
@@ -539,22 +539,19 @@ const defaultContractPrintDependencies = { printPsl };
|
|
|
539
539
|
async function executeContractPrint(options, dependencies = defaultContractPrintDependencies) {
|
|
540
540
|
const { config, contractConfig, description, cwd, signal } = options;
|
|
541
541
|
const stack = createControlStack(config);
|
|
542
|
-
const sourceWarnings = [];
|
|
543
542
|
const loaded = await loadContractSourceWithStack({
|
|
544
543
|
stack,
|
|
545
544
|
source: contractConfig.source,
|
|
546
545
|
cwd,
|
|
547
|
-
...ifDefined("signal", signal)
|
|
548
|
-
reportWarning: (diagnostic) => {
|
|
549
|
-
sourceWarnings.push(diagnostic);
|
|
550
|
-
}
|
|
546
|
+
...ifDefined("signal", signal)
|
|
551
547
|
});
|
|
552
|
-
if (!loaded.ok) throw loaded.failure.error;
|
|
548
|
+
if (!loaded.ok) throw withWarningFindings(loaded.failure.error, loaded.failure.warnings, cwd);
|
|
549
|
+
const { warnings: sourceWarnings } = loaded.value;
|
|
553
550
|
const familyInstance = config.family.create(stack);
|
|
554
551
|
const contract = validateLoadedContract({
|
|
555
552
|
config,
|
|
556
553
|
familyInstance,
|
|
557
|
-
contract: loaded.value
|
|
554
|
+
contract: loaded.value.contract
|
|
558
555
|
});
|
|
559
556
|
if (!hasPslContractBuild(familyInstance)) throw errorRuntime("CONTRACT.PRINT_UNSUPPORTED", "contract print is not supported for this family", {
|
|
560
557
|
why: "The configured family cannot print a contract as PSL, so nothing was written.",
|