@prisma/orm-toolchain 8.0.0-rc.12-dev.9 → 8.0.0-rc.12-dev.10
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 +8 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/cli__control-api.d.mts +4 -2
- 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-verify-DyjbIXfH-Bk68qPoB.d.mts → db-verify-D4Y9yGyX-Df6oIwYg.d.mts} +7 -3
- package/dist/db-verify-D4Y9yGyX-Df6oIwYg.d.mts.map +1 -0
- package/dist/{exports-DpFO5X4j.mjs → exports-4SvYVqSf.mjs} +39 -15
- package/dist/exports-4SvYVqSf.mjs.map +1 -0
- package/dist/{ref-J_U8k_jN-BbJ39q0M.mjs → ref-jhp3BGZM-BWaU-cHv.mjs} +18 -8
- package/dist/ref-jhp3BGZM-BWaU-cHv.mjs.map +1 -0
- package/dist/vite-plugin-contract-emit.mjs +1 -1
- package/package.json +12 -12
- package/dist/db-verify-DyjbIXfH-Bk68qPoB.d.mts.map +0 -1
- package/dist/exports-DpFO5X4j.mjs.map +0 -1
- package/dist/ref-J_U8k_jN-BbJ39q0M.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { t as EMPTY_CONTRACT_HASH } from "./constants-CM-w38DQ-Cz_EXbOc.mjs";
|
|
|
5
5
|
import { r as readRef } from "./refs-qwvw4_dV-Bk9tl756.mjs";
|
|
6
6
|
import { c as spaceMigrationDirectory } from "./verify-contract-spaces-CYjc343k-9_2GpPRg.mjs";
|
|
7
7
|
import { i as createScaffoldSpecifierResolver } from "./import-roots-CYpOz1XZ.mjs";
|
|
8
|
-
import { $ as formatSourceDiagnostic, A as errorLegendHumanOnly, At as runCommandAction, B as errorUnexpected, C as errorContractArgConflict, Ct as requireLiveDatabase, D as errorDriverRequired, E as errorDestructiveChanges, Et as resolveContractRefToSnapshot, F as errorPathUnreachable, Ft as snapshotVerifierFor, G as executeMigrateShowPlan, I as errorRunnerFailed, It as statusForMigrationHash, K as executeMigrationNewCommand, L as errorRuntime, Lt as targetSupportsMigrations, M as errorMigrationPackageNotFound, Mt as runMigrationCheck, N as errorMigrationPlanningFailed, Nt as runMigrationList, O as errorFileNotFound, Ot as resolveMigrationRef, P as errorNoMigrations, Pt as sanitizeErrorMessage, Q as findPackageByDirPath, R as errorTargetMigrationNotSupported, Rt as toDeclaredExtensionsFromRaw, S as errorConsentPlanMismatch, St as refuseUnknownInvariants, T as errorDatabaseConnectionRequired, Tt as resolveContractRef$1, V as executeContractEmit, X as executeRefListCommand, Y as executeRefDeleteCommand, Z as executeRefSetCommand, _t as refuseContractSpaceIntegrity, at as loadContractSpaceAggregateForCli, b as errorAdvanceRefArgConflict, bt as refuseMissingInvariantPath, c as buildMigrationSpaceGraphEntries, ct as mapContractAtError, d as checkSingleTarget, dt as migrationSpaceListEntriesFromAggregate, et as hasMigrationPath, f as chooseAction, ft as originHashForStatus, g as deriveStatusEdgeAnnotations, gt as redactUrlCredentials, h as createControlClient, ht as readMigrationRefs, i as advanceRefSafely, it as loadContractSource, j as errorMarkerMissing, k as errorHashMismatch, l as buildReadAggregate, m as computeRefAdvancementName, mt as readContractEnvelope, n as ERROR_CODE_DESTRUCTIVE_CHANGES, nt as loadAggregateIntegrityViolations, o as appliedHashesFromLedger, ot as looksLikePath, p as closeQuietly, pt as preflightRefAdvancement, q as executeMigrationPlanCommand, r as NO_REF_ADVANCEMENT, rt as loadContractRawSafely, st as mapCaughtMigrationError, t as CliStructuredError$1$1, tt as listRefsByContractHash, u as buildRefAdvancementFields, ut as maskConnectionUrl, w as errorContractValidationFailed, wt as resolveAppTargetPath, x as errorConfigValidation$1, xt as refusePackageCorruptionOnAggregate, y as enumerateCheckSpaces, yt as refuseMarkerOutsideGraph, z as errorTargetMismatch } from "./ref-
|
|
8
|
+
import { $ as formatSourceDiagnostic, A as errorLegendHumanOnly, At as runCommandAction, B as errorUnexpected, C as errorContractArgConflict, Ct as requireLiveDatabase, D as errorDriverRequired, E as errorDestructiveChanges, Et as resolveContractRefToSnapshot, F as errorPathUnreachable, Ft as snapshotVerifierFor, G as executeMigrateShowPlan, I as errorRunnerFailed, It as statusForMigrationHash, K as executeMigrationNewCommand, L as errorRuntime, Lt as targetSupportsMigrations, M as errorMigrationPackageNotFound, Mt as runMigrationCheck, N as errorMigrationPlanningFailed, Nt as runMigrationList, O as errorFileNotFound, Ot as resolveMigrationRef, P as errorNoMigrations, Pt as sanitizeErrorMessage, Q as findPackageByDirPath, R as errorTargetMigrationNotSupported, Rt as toDeclaredExtensionsFromRaw, S as errorConsentPlanMismatch, St as refuseUnknownInvariants, T as errorDatabaseConnectionRequired, Tt as resolveContractRef$1, V as executeContractEmit, X as executeRefListCommand, Y as executeRefDeleteCommand, Z as executeRefSetCommand, _t as refuseContractSpaceIntegrity, at as loadContractSpaceAggregateForCli, b as errorAdvanceRefArgConflict, bt as refuseMissingInvariantPath, c as buildMigrationSpaceGraphEntries, ct as mapContractAtError, d as checkSingleTarget, dt as migrationSpaceListEntriesFromAggregate, et as hasMigrationPath, f as chooseAction, ft as originHashForStatus, g as deriveStatusEdgeAnnotations, gt as redactUrlCredentials, h as createControlClient, ht as readMigrationRefs, i as advanceRefSafely, it as loadContractSource, j as errorMarkerMissing, k as errorHashMismatch, l as buildReadAggregate, m as computeRefAdvancementName, mt as readContractEnvelope, n as ERROR_CODE_DESTRUCTIVE_CHANGES, nt as loadAggregateIntegrityViolations, o as appliedHashesFromLedger, ot as looksLikePath, p as closeQuietly, pt as preflightRefAdvancement, q as executeMigrationPlanCommand, r as NO_REF_ADVANCEMENT, rt as loadContractRawSafely, st as mapCaughtMigrationError, t as CliStructuredError$1$1, tt as listRefsByContractHash, u as buildRefAdvancementFields, ut as maskConnectionUrl, w as errorContractValidationFailed, wt as resolveAppTargetPath, x as errorConfigValidation$1, xt as refusePackageCorruptionOnAggregate, y as enumerateCheckSpaces, yt as refuseMarkerOutsideGraph, z as errorTargetMismatch } from "./ref-jhp3BGZM-BWaU-cHv.mjs";
|
|
9
9
|
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";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { existsSync, mkdirSync, readFileSync, readdirSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
@@ -34,7 +34,7 @@ import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
|
34
34
|
import stringWidth from "string-width";
|
|
35
35
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
36
36
|
import { build } from "esbuild";
|
|
37
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
37
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-D1n9SvDg.mjs
|
|
38
38
|
/**
|
|
39
39
|
* `isStructuredError` is the repo's own check, and it is the one that matters here: it holds the
|
|
40
40
|
* regular expression for a dotted `NAMESPACE.SUBCODE`, so only a code the protocol accepts
|
|
@@ -254,6 +254,11 @@ function createContractEmitCommand({ executeContractEmit }) {
|
|
|
254
254
|
signal: ctx.signal,
|
|
255
255
|
...ifDefined("outputPath", outputPath)
|
|
256
256
|
});
|
|
257
|
+
for (const warning of result.sourceWarnings ?? []) ctx.report({
|
|
258
|
+
kind: "message",
|
|
259
|
+
severity: "warn",
|
|
260
|
+
text: `warning ${formatSourceDiagnostic(warning)}`
|
|
261
|
+
});
|
|
257
262
|
if (result.validationWarning !== void 0) ctx.report({
|
|
258
263
|
kind: "message",
|
|
259
264
|
severity: "warn",
|
|
@@ -6198,7 +6203,7 @@ const lspCommand = defineServerCommand({
|
|
|
6198
6203
|
} },
|
|
6199
6204
|
handler: async (args, io) => {
|
|
6200
6205
|
const exitCode = await withoutClientProcessIdInArgv(async () => {
|
|
6201
|
-
const { startServer } = await import("./exports-
|
|
6206
|
+
const { startServer } = await import("./exports-4SvYVqSf.mjs");
|
|
6202
6207
|
return startServer({
|
|
6203
6208
|
stdin: io.stdin,
|
|
6204
6209
|
stdout: io.stdout,
|