@prisma-next/cli 0.14.0-dev.70 → 0.14.0-dev.72
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 +17 -15
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-Mafia7H8.mjs → client-CSjItqGl.mjs} +6 -6
- package/dist/{client-Mafia7H8.mjs.map → client-CSjItqGl.mjs.map} +1 -1
- package/dist/{command-helpers-CrbSu83u.mjs → command-helpers-QT2K9Et1.mjs} +7 -4
- package/dist/{command-helpers-CrbSu83u.mjs.map → command-helpers-QT2K9Et1.mjs.map} +1 -1
- package/dist/commands/contract-emit.mjs +1 -1
- package/dist/commands/contract-infer.mjs +1 -1
- package/dist/commands/db-init.mjs +3 -3
- package/dist/commands/db-schema.mjs +3 -3
- package/dist/commands/db-sign.mjs +4 -4
- package/dist/commands/db-update.mjs +4 -4
- package/dist/commands/db-verify.mjs +1 -1
- package/dist/commands/migrate.mjs +6 -6
- package/dist/commands/migration-check.mjs +1 -1
- package/dist/commands/migration-graph.mjs +4 -4
- package/dist/commands/migration-list.mjs +1 -1
- package/dist/commands/migration-log.mjs +1 -1
- package/dist/commands/migration-new.mjs +3 -3
- package/dist/commands/migration-plan.mjs +1 -1
- package/dist/commands/migration-show.mjs +3 -3
- package/dist/commands/migration-status.mjs +1 -1
- package/dist/commands/ref.mjs +2 -2
- package/dist/commands/telemetry/index.mjs +1 -1
- package/dist/{contract-at-errors-C4cRxSiW.mjs → contract-at-errors-Bz2nhSQe.mjs} +2 -2
- package/dist/{contract-at-errors-C4cRxSiW.mjs.map → contract-at-errors-Bz2nhSQe.mjs.map} +1 -1
- package/dist/{contract-emit-pWv3Pzbs.mjs → contract-emit-DngUbUIn.mjs} +3 -3
- package/dist/{contract-emit-pWv3Pzbs.mjs.map → contract-emit-DngUbUIn.mjs.map} +1 -1
- package/dist/{contract-emit-Bo-ysaDm.mjs → contract-emit-DxYG_LFW.mjs} +3 -3
- package/dist/{contract-emit-Bo-ysaDm.mjs.map → contract-emit-DxYG_LFW.mjs.map} +1 -1
- package/dist/{contract-infer-BFhG6NWL.mjs → contract-infer-oN6sO3KL.mjs} +3 -3
- package/dist/{contract-infer-BFhG6NWL.mjs.map → contract-infer-oN6sO3KL.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-BjaWX3Se.mjs → contract-space-aggregate-loader-BtDPwApY.mjs} +3 -3
- package/dist/{contract-space-aggregate-loader-BjaWX3Se.mjs.map → contract-space-aggregate-loader-BtDPwApY.mjs.map} +1 -1
- package/dist/{db-verify-B-yM-rWM.mjs → db-verify-C7OrrXoL.mjs} +4 -4
- package/dist/{db-verify-B-yM-rWM.mjs.map → db-verify-C7OrrXoL.mjs.map} +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +2 -2
- package/dist/{format-DdrIQdXs.mjs → format-CuwbZywI.mjs} +2 -2
- package/dist/{format-DdrIQdXs.mjs.map → format-CuwbZywI.mjs.map} +1 -1
- package/dist/{framework-components-CIOC02gB.mjs → framework-components-DDFn0JuW.mjs} +2 -2
- package/dist/{framework-components-CIOC02gB.mjs.map → framework-components-DDFn0JuW.mjs.map} +1 -1
- package/dist/{init-Cqs_g32X.mjs → init-BilLYqQ8.mjs} +18 -14
- package/dist/{init-Cqs_g32X.mjs.map → init-BilLYqQ8.mjs.map} +1 -1
- package/dist/{inspect-live-schema-DGUno-1g.mjs → inspect-live-schema-B7Mbupr3.mjs} +3 -3
- package/dist/{inspect-live-schema-DGUno-1g.mjs.map → inspect-live-schema-B7Mbupr3.mjs.map} +1 -1
- package/dist/{migration-check-BFlAXpOs.mjs → migration-check-DLikkbJE.mjs} +5 -4
- package/dist/{migration-check-BFlAXpOs.mjs.map → migration-check-DLikkbJE.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-DWV_cibQ.mjs → migration-command-scaffold-BRT5yq_f.mjs} +3 -3
- package/dist/{migration-command-scaffold-DWV_cibQ.mjs.map → migration-command-scaffold-BRT5yq_f.mjs.map} +1 -1
- package/dist/{migration-graph-command-render-CEez7YUK.mjs → migration-graph-command-render-B83xrnNy.mjs} +24 -24
- package/dist/{migration-graph-command-render-CEez7YUK.mjs.map → migration-graph-command-render-B83xrnNy.mjs.map} +1 -1
- package/dist/{migration-list-WvGfMvvY.mjs → migration-list-B9Fs3m_y.mjs} +4 -4
- package/dist/{migration-list-WvGfMvvY.mjs.map → migration-list-B9Fs3m_y.mjs.map} +1 -1
- package/dist/{migration-log-WP4EKDuD.mjs → migration-log-BCWLCKe_.mjs} +4 -4
- package/dist/{migration-log-WP4EKDuD.mjs.map → migration-log-BCWLCKe_.mjs.map} +1 -1
- package/dist/{migration-path-target-CMftkzFU.mjs → migration-path-target-ZbmLeKaI.mjs} +2 -2
- package/dist/{migration-path-target-CMftkzFU.mjs.map → migration-path-target-ZbmLeKaI.mjs.map} +1 -1
- package/dist/{migration-plan-2vrrND-5.mjs → migration-plan-BTiBCHeD.mjs} +5 -5
- package/dist/{migration-plan-2vrrND-5.mjs.map → migration-plan-BTiBCHeD.mjs.map} +1 -1
- package/dist/{migration-status-D-8Ja2Ca.mjs → migration-status-B6b1b7Pj.mjs} +7 -6
- package/dist/{migration-status-D-8Ja2Ca.mjs.map → migration-status-B6b1b7Pj.mjs.map} +1 -1
- package/dist/{telemetry-DVSI2213.mjs → telemetry-CzTG8swa.mjs} +2 -2
- package/dist/{telemetry-DVSI2213.mjs.map → telemetry-CzTG8swa.mjs.map} +1 -1
- package/dist/{verify-BwWa6yKe.mjs → verify-NGJUoMUV.mjs} +2 -2
- package/dist/{verify-BwWa6yKe.mjs.map → verify-NGJUoMUV.mjs.map} +1 -1
- package/package.json +28 -28
|
@@ -357,7 +357,8 @@ function renderCommandTree(options) {
|
|
|
357
357
|
const isLastCommand = i === commands.length - 1;
|
|
358
358
|
if (subcommands.length > 0) {
|
|
359
359
|
const treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText("└") : formatDimText("├")}─ `;
|
|
360
|
-
const
|
|
360
|
+
const treePrefixWidth = stringWidth(stripAnsi(treePrefix));
|
|
361
|
+
const remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;
|
|
361
362
|
const commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);
|
|
362
363
|
const commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;
|
|
363
364
|
lines.push(`${formatDimText("│")} ${treePrefix}${commandNameColored}`);
|
|
@@ -369,14 +370,16 @@ function renderCommandTree(options) {
|
|
|
369
370
|
const treeChar = isLastSubcommand ? "└" : "├";
|
|
370
371
|
const continuation = continuationPrefix ?? (isLastCommand && isLastSubcommand && !hasItemsAfter ? " " : formatDimText("│"));
|
|
371
372
|
const subTreePrefix = `${continuation === " " ? " " : continuation} ${formatDimText(treeChar)}─ `;
|
|
372
|
-
const
|
|
373
|
+
const subTreePrefixWidth = stringWidth(stripAnsi(subTreePrefix));
|
|
374
|
+
const subRemainingWidth = LEFT_COLUMN_WIDTH$1 - subTreePrefixWidth;
|
|
373
375
|
const subcommandNamePadded = padToFixedWidth(subcmd.name(), subRemainingWidth);
|
|
374
376
|
const subcommandNameColored = useColor ? cyan(subcommandNamePadded) : subcommandNamePadded;
|
|
375
377
|
lines.push(`${formatDimText("│")} ${subTreePrefix}${subcommandNameColored} ${shortDescription}`);
|
|
376
378
|
}
|
|
377
379
|
} else {
|
|
378
380
|
const treePrefix = `${isLastCommand && !hasItemsAfter ? formatDimText("└") : formatDimText("├")}─ `;
|
|
379
|
-
const
|
|
381
|
+
const treePrefixWidth = stringWidth(stripAnsi(treePrefix));
|
|
382
|
+
const remainingWidth = LEFT_COLUMN_WIDTH$1 - treePrefixWidth;
|
|
380
383
|
const commandNamePadded = padToFixedWidth(cmd.name(), remainingWidth);
|
|
381
384
|
const commandNameColored = useColor ? cyan(commandNamePadded) : commandNamePadded;
|
|
382
385
|
const shortDescription = cmd.description() || "";
|
|
@@ -1665,4 +1668,4 @@ function addGlobalOptions(command) {
|
|
|
1665
1668
|
//#endregion
|
|
1666
1669
|
export { errorRefSetBundleNotFound as $, formatStyledHeader as A, errorContractValidationFailed as B, formatMigrationApplyOutput as C, isCI$1 as D, formatMigrationShowOutput as E, CliStructuredError$1 as F, errorHashMismatch as G, errorDestructiveChanges as H, ERROR_CODE_DESTRUCTIVE_CHANGES as I, errorMarkerMismatch as J, errorInvalidSpaceId as K, errorAmbiguousMigrationRef as L, createColorFormatter as M, formatDim as N, formatCommandHelp as O, isVerbose as P, errorPlanForgotTheFlag as Q, errorConfigValidation as R, formatMigrationApplyCommandOutput as S, formatMigrationPlanOutput as T, errorDriverRequired as U, errorDatabaseConnectionRequired as V, errorFileNotFound as W, errorMigrationPlanningFailed as X, errorMarkerMissing as Y, errorPathUnreachable as Z, createTerminalUI as _, readContractEnvelope as a, errorSpaceNotFound as at, formatErrorJson as b, sanitizeErrorMessage as c, errorUnexpected as ct, setCommandSeeAlso as d, requireLiveDatabase as dt, errorRefSetEmptySentinel as et, targetSupportsMigrations as f, parseGlobalFlagsOrExit as g, parseGlobalFlags as h, maskConnectionUrl as i, errorSnapshotMissing as it, formatSuccessMessage as j, formatRootHelp as k, setCommandDescriptions as l, mapMigrationToolsError as lt, deriveCanPrompt as m, collectDeclaredInvariants as n, errorRunnerFailed as nt, resolveContractPath as o, errorTargetMigrationNotSupported as ot, toStructuralEdge as p, errorLegendHumanOnly as q, getTargetMigrations as r, errorRuntime$1 as rt, resolveMigrationPaths as s, errorTargetMismatch as st, addGlobalOptions as t, errorRefSetHashNotInGraph as tt, setCommandExamples as u, mapRefResolutionError as ut, installShutdownHandlers as v, formatMigrationJson as w, formatErrorOutput as x, handleResult as y, errorContractConfigMissing$1 as z };
|
|
1667
1670
|
|
|
1668
|
-
//# sourceMappingURL=command-helpers-
|
|
1671
|
+
//# sourceMappingURL=command-helpers-QT2K9Et1.mjs.map
|