@prisma-next/cli 0.11.0-dev.69 → 0.11.0-dev.70
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/commands/migrate.d.mts +1 -1
- package/dist/commands/migration-graph.d.mts +6 -4
- package/dist/commands/migration-graph.d.mts.map +1 -1
- package/dist/commands/migration-graph.mjs +1 -121
- package/dist/commands/migration-list.d.mts +4 -3
- package/dist/commands/migration-list.d.mts.map +1 -1
- package/dist/commands/migration-list.mjs +1 -1
- package/dist/commands/migration-log.d.mts +3 -3
- package/dist/commands/migration-plan.d.mts +1 -1
- package/dist/commands/migration-plan.mjs +1 -1
- package/dist/commands/migration-show.d.mts +1 -1
- package/dist/commands/migration-status.d.mts +1 -1
- package/dist/commands/ref.d.mts +1 -1
- package/dist/exports/control-api.d.mts +1 -1
- package/dist/exports/init-output.mjs +1 -1
- package/dist/{global-flags-2SPgqWma.d.mts → global-flags-DG4uY5tV.d.mts} +1 -1
- package/dist/{global-flags-2SPgqWma.d.mts.map → global-flags-DG4uY5tV.d.mts.map} +1 -1
- package/dist/{init-BQNpPozW.mjs → init-DE-phHWK.mjs} +2 -2
- package/dist/{init-BQNpPozW.mjs.map → init-DE-phHWK.mjs.map} +1 -1
- package/dist/migration-graph-kPluRdF2.mjs +1232 -0
- package/dist/migration-graph-kPluRdF2.mjs.map +1 -0
- package/dist/{migration-list-A3bJ4j5e.mjs → migration-list-CE35R5Ag.mjs} +2 -277
- package/dist/migration-list-CE35R5Ag.mjs.map +1 -0
- package/dist/migration-list-styler-DeAwACt3.mjs +402 -0
- package/dist/migration-list-styler-DeAwACt3.mjs.map +1 -0
- package/dist/{migration-plan-ZZm8C0s-.mjs → migration-plan-DHLa2Khm.mjs} +1 -1
- package/dist/{migration-plan-ZZm8C0s-.mjs.map → migration-plan-DHLa2Khm.mjs.map} +1 -1
- package/dist/{migration-types-q64xAI_J.d.mts → migration-types-CAQ-0TEE.d.mts} +1 -1
- package/dist/{migration-types-q64xAI_J.d.mts.map → migration-types-CAQ-0TEE.d.mts.map} +1 -1
- package/dist/{output-DEg3SSnJ.mjs → output-CF_hqzI-.mjs} +1 -1
- package/dist/{output-DEg3SSnJ.mjs.map → output-CF_hqzI-.mjs.map} +1 -1
- package/dist/{terminal-ui-sLZt2cxc.d.mts → terminal-ui-BbtqsQYY.d.mts} +1 -1
- package/dist/{terminal-ui-sLZt2cxc.d.mts.map → terminal-ui-BbtqsQYY.d.mts.map} +1 -1
- package/dist/{types-BNqTw3ek.d.mts → types-Ci7TndCS.d.mts} +1 -1
- package/dist/{types-BNqTw3ek.d.mts.map → types-Ci7TndCS.d.mts.map} +1 -1
- package/package.json +18 -18
- package/src/commands/migration-graph.ts +60 -19
- package/src/utils/formatters/migration-graph-layout.ts +1119 -0
- package/src/utils/formatters/migration-graph-rows.ts +336 -0
- package/src/utils/formatters/migration-graph-tree-render.ts +459 -0
- package/src/utils/formatters/migration-list-graph-topology.ts +245 -35
- package/src/utils/formatters/migration-list-styler.ts +9 -7
- package/dist/commands/migration-graph.mjs.map +0 -1
- package/dist/migration-list-A3bJ4j5e.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -9,11 +9,11 @@ import { createDbUpdateCommand } from "./commands/db-update.mjs";
|
|
|
9
9
|
import { t as createDbVerifyCommand } from "./db-verify-D44Qj3w9.mjs";
|
|
10
10
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
11
11
|
import { t as createMigrationCheckCommand } from "./migration-check-CKfQlAWR.mjs";
|
|
12
|
-
import { createMigrationGraphCommand } from "./
|
|
13
|
-
import { t as createMigrationListCommand } from "./migration-list-
|
|
12
|
+
import { t as createMigrationGraphCommand } from "./migration-graph-kPluRdF2.mjs";
|
|
13
|
+
import { t as createMigrationListCommand } from "./migration-list-CE35R5Ag.mjs";
|
|
14
14
|
import { createMigrationLogCommand } from "./commands/migration-log.mjs";
|
|
15
15
|
import { createMigrationNewCommand } from "./commands/migration-new.mjs";
|
|
16
|
-
import { t as createMigrationPlanCommand } from "./migration-plan-
|
|
16
|
+
import { t as createMigrationPlanCommand } from "./migration-plan-DHLa2Khm.mjs";
|
|
17
17
|
import { createMigrationShowCommand } from "./commands/migration-show.mjs";
|
|
18
18
|
import { createMigrationStatusCommand } from "./commands/migration-status.mjs";
|
|
19
19
|
import { createRefCommand } from "./commands/ref.mjs";
|
|
@@ -24,7 +24,7 @@ import { fileURLToPath } from "node:url";
|
|
|
24
24
|
import { readUserConfig, resolveGating, runTelemetry } from "@prisma-next/cli-telemetry";
|
|
25
25
|
import { distance } from "closest-match";
|
|
26
26
|
//#region package.json
|
|
27
|
-
var version = "0.11.0-dev.
|
|
27
|
+
var version = "0.11.0-dev.70";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/utils/telemetry.ts
|
|
30
30
|
/**
|
|
@@ -412,7 +412,7 @@ Exit codes (see CLI Style Guide § Exit Codes):
|
|
|
412
412
|
"prisma-next init --no-skill # skip the skills install (air-gapped / restricted env)"
|
|
413
413
|
]);
|
|
414
414
|
return addGlobalOptions(command).option("--target <db>", "Database target: postgres or mongodb").option("--authoring <style>", "Schema authoring style: psl or typescript").option("--schema-path <path>", `Where to write the starter schema (default: ${defaultSchemaPath("psl")})`).option("--force", "Overwrite an existing scaffold without prompting").option("--write-env", "Write a .env file from .env.example (gitignored; default: only .env.example)").option("--probe-db", "Connect to DATABASE_URL once and check the server version against the target minimum (opt-in; off by default)").option("--strict-probe", "Treat a failed --probe-db as fatal (no-op without --probe-db; init is offline-by-default)").option("--no-install", "Skip dependency installation and contract emission").option("--no-skill", "Skip Prisma Next skills install (air-gapped CI, restricted registries, etc.)").action(async (options, actionCommand) => {
|
|
415
|
-
const { runInit } = await import("./init-
|
|
415
|
+
const { runInit } = await import("./init-DE-phHWK.mjs");
|
|
416
416
|
const flags = parseGlobalFlagsOrExit(options);
|
|
417
417
|
const canPrompt = deriveCanPrompt({
|
|
418
418
|
flagsInteractive: flags.interactive,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as PerSpaceExecutionEntry, w as MigrationApplyPathDecision } from "../types-
|
|
1
|
+
import { E as PerSpaceExecutionEntry, w as MigrationApplyPathDecision } from "../types-Ci7TndCS.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/migrate.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { N as CliStructuredError } from "../types-
|
|
2
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-
|
|
3
|
-
import { n as StatusRef } from "../migration-types-
|
|
4
|
-
import { t as TerminalUI } from "../terminal-ui-
|
|
1
|
+
import { N as CliStructuredError } from "../types-Ci7TndCS.mjs";
|
|
2
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-DG4uY5tV.mjs";
|
|
3
|
+
import { n as StatusRef } from "../migration-types-CAQ-0TEE.mjs";
|
|
4
|
+
import { t as TerminalUI } from "../terminal-ui-BbtqsQYY.mjs";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import { Result } from "@prisma-next/utils/result";
|
|
7
7
|
import { MigrationGraph } from "@prisma-next/migration-tools/graph";
|
|
@@ -10,6 +10,8 @@ import { MigrationGraph } from "@prisma-next/migration-tools/graph";
|
|
|
10
10
|
interface MigrationGraphOptions extends CommonCommandOptions {
|
|
11
11
|
readonly config?: string;
|
|
12
12
|
readonly dot?: boolean;
|
|
13
|
+
readonly tree?: boolean;
|
|
14
|
+
readonly ascii?: boolean;
|
|
13
15
|
}
|
|
14
16
|
interface MigrationGraphResult {
|
|
15
17
|
readonly ok: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-graph.d.mts","names":[],"sources":["../../src/commands/migration-graph.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"migration-graph.d.mts","names":[],"sources":["../../src/commands/migration-graph.ts"],"mappings":";;;;;;;;;UA0BU,qBAAA,SAA8B,oBAAoB;EAAA,SACjD,MAAA;EAAA,SACA,GAAA;EAAA,SACA,IAAA;EAAA,SACA,KAAA;AAAA;AAAA,UAGM,oBAAA;EAAA,SACN,EAAA;EAAA,SACA,KAAA,EAAO,cAAA;EAAA,SACP,YAAA;EAAA,SACA,IAAA,WAAe,SAAS;EAAA,SACxB,OAAA;AAAA;AAAA,iBAGW,4BAAA,CACpB,OAAA,EAAS,qBAAA,EACT,KAAA,EAAO,WAAA,EACP,EAAA,EAAI,UAAA,GACH,OAAA,CAAQ,MAAA,CAAO,oBAAA,EAAsB,kBAAA;AAAA,iBA0CxB,2BAAA,CAAA,GAA+B,OAAO"}
|
|
@@ -1,122 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { T as formatStyledHeader, _ as createTerminalUI, d as setCommandSeeAlso, g as parseGlobalFlagsOrExit, l as setCommandDescriptions, s as resolveMigrationPaths, t as addGlobalOptions, u as setCommandExamples, y as handleResult } from "../command-helpers-CoceqqMl.mjs";
|
|
3
|
-
import { r as buildReadAggregate } from "../contract-space-aggregate-loader-lafgkTwG.mjs";
|
|
4
|
-
import { i as migrationGraphToRenderInput, n as graphRenderer } from "../graph-render-rFAqZujX.mjs";
|
|
5
|
-
import { Command } from "commander";
|
|
6
|
-
import { ok } from "@prisma-next/utils/result";
|
|
7
|
-
import { EMPTY_CONTRACT_HASH } from "@prisma-next/migration-tools/constants";
|
|
8
|
-
//#region src/commands/migration-graph.ts
|
|
9
|
-
async function executeMigrationGraphCommand(options, flags, ui) {
|
|
10
|
-
const config = await loadConfig(options.config);
|
|
11
|
-
const { configPath, appMigrationsRelative, migrationsDir } = resolveMigrationPaths(options.config, config);
|
|
12
|
-
if (!flags.json && !flags.quiet) {
|
|
13
|
-
const header = formatStyledHeader({
|
|
14
|
-
command: "migration graph",
|
|
15
|
-
description: "Show the migration graph topology",
|
|
16
|
-
details: [{
|
|
17
|
-
label: "config",
|
|
18
|
-
value: configPath
|
|
19
|
-
}, {
|
|
20
|
-
label: "migrations",
|
|
21
|
-
value: appMigrationsRelative
|
|
22
|
-
}],
|
|
23
|
-
flags
|
|
24
|
-
});
|
|
25
|
-
ui.stderr(header);
|
|
26
|
-
}
|
|
27
|
-
const loaded = await buildReadAggregate(config, { migrationsDir });
|
|
28
|
-
if (!loaded.ok) return loaded;
|
|
29
|
-
const { aggregate, contractHash } = loaded.value;
|
|
30
|
-
const graph = aggregate.app.graph();
|
|
31
|
-
return ok({
|
|
32
|
-
ok: true,
|
|
33
|
-
graph,
|
|
34
|
-
contractHash,
|
|
35
|
-
refs: Object.entries(aggregate.app.refs).map(([name, entry]) => ({
|
|
36
|
-
name,
|
|
37
|
-
hash: entry.hash,
|
|
38
|
-
active: false
|
|
39
|
-
})),
|
|
40
|
-
summary: `${graph.nodes.size} node(s), ${graph.migrationByHash.size} edge(s)`
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function createMigrationGraphCommand() {
|
|
44
|
-
const command = new Command("graph");
|
|
45
|
-
setCommandDescriptions(command, "Show the migration graph topology", "Renders the migration graph as an ASCII tree. Offline — does not\nconsult the database. Use --json for machine-readable output or\n--dot for Graphviz DOT format.");
|
|
46
|
-
setCommandExamples(command, [
|
|
47
|
-
"prisma-next migration graph",
|
|
48
|
-
"prisma-next migration graph --json",
|
|
49
|
-
"prisma-next migration graph --dot"
|
|
50
|
-
]);
|
|
51
|
-
setCommandSeeAlso(command, [
|
|
52
|
-
{
|
|
53
|
-
verb: "migration status",
|
|
54
|
-
oneLiner: "Show migration path and pending status"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
verb: "migration log",
|
|
58
|
-
oneLiner: "Show executed migration history"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
verb: "migration list",
|
|
62
|
-
oneLiner: "List on-disk migrations"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
verb: "migration show",
|
|
66
|
-
oneLiner: "Display migration package contents"
|
|
67
|
-
}
|
|
68
|
-
]);
|
|
69
|
-
addGlobalOptions(command).option("--config <path>", "Path to prisma-next.config.ts").option("--dot", "Output in Graphviz DOT format").action(async (options) => {
|
|
70
|
-
const flags = parseGlobalFlagsOrExit(options);
|
|
71
|
-
const ui = createTerminalUI(flags);
|
|
72
|
-
const exitCode = handleResult(await executeMigrationGraphCommand(options, flags, ui), flags, ui, (graphResult) => {
|
|
73
|
-
if (options.dot) {
|
|
74
|
-
const lines = ["digraph migrations {"];
|
|
75
|
-
for (const edge of graphResult.graph.migrationByHash.values()) {
|
|
76
|
-
const from = edge.from.slice(0, 12);
|
|
77
|
-
const to = edge.to.slice(0, 12);
|
|
78
|
-
lines.push(` "${from}" -> "${to}" [label="${edge.dirName}"];`);
|
|
79
|
-
}
|
|
80
|
-
lines.push("}");
|
|
81
|
-
ui.output(lines.join("\n"));
|
|
82
|
-
} else if (flags.json) {
|
|
83
|
-
const nodes = [...graphResult.graph.nodes];
|
|
84
|
-
const edges = [...graphResult.graph.migrationByHash.values()].map((e) => ({
|
|
85
|
-
dirName: e.dirName,
|
|
86
|
-
from: e.from,
|
|
87
|
-
to: e.to,
|
|
88
|
-
migrationHash: e.migrationHash
|
|
89
|
-
}));
|
|
90
|
-
ui.output(JSON.stringify({
|
|
91
|
-
ok: true,
|
|
92
|
-
nodes,
|
|
93
|
-
edges,
|
|
94
|
-
summary: graphResult.summary
|
|
95
|
-
}, null, 2));
|
|
96
|
-
} else if (!flags.quiet) {
|
|
97
|
-
const renderInput = migrationGraphToRenderInput({
|
|
98
|
-
graph: graphResult.graph,
|
|
99
|
-
mode: "offline",
|
|
100
|
-
markerHash: void 0,
|
|
101
|
-
contractHash: graphResult.contractHash ?? EMPTY_CONTRACT_HASH,
|
|
102
|
-
refs: graphResult.refs,
|
|
103
|
-
activeRefHash: void 0,
|
|
104
|
-
activeRefName: void 0,
|
|
105
|
-
edgeStatuses: []
|
|
106
|
-
});
|
|
107
|
-
const graphOutput = graphRenderer.render(renderInput.graph, {
|
|
108
|
-
...renderInput.options,
|
|
109
|
-
colorize: flags.color !== false
|
|
110
|
-
});
|
|
111
|
-
ui.log(graphOutput);
|
|
112
|
-
ui.log(`\n${graphResult.summary}`);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
process.exit(exitCode);
|
|
116
|
-
});
|
|
117
|
-
return command;
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
1
|
+
import { n as executeMigrationGraphCommand, t as createMigrationGraphCommand } from "../migration-graph-kPluRdF2.mjs";
|
|
120
2
|
export { createMigrationGraphCommand, executeMigrationGraphCommand };
|
|
121
|
-
|
|
122
|
-
//# sourceMappingURL=migration-graph.mjs.map
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { N as CliStructuredError } from "../types-
|
|
2
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-
|
|
3
|
-
import { n as GlyphMode, t as TerminalUI } from "../terminal-ui-
|
|
1
|
+
import { N as CliStructuredError } from "../types-Ci7TndCS.mjs";
|
|
2
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-DG4uY5tV.mjs";
|
|
3
|
+
import { n as GlyphMode, t as TerminalUI } from "../terminal-ui-BbtqsQYY.mjs";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import { Result } from "@prisma-next/utils/result";
|
|
6
6
|
import { ContractSpaceAggregate } from "@prisma-next/migration-tools/aggregate";
|
|
7
|
+
import { MigrationGraph } from "@prisma-next/migration-tools/graph";
|
|
7
8
|
|
|
8
9
|
//#region src/utils/formatters/migration-list-types.d.ts
|
|
9
10
|
interface MigrationListEntry {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-list.d.mts","names":[],"sources":["../../src/utils/formatters/migration-list-types.ts","../../src/commands/migration-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"migration-list.d.mts","names":[],"sources":["../../src/utils/formatters/migration-list-types.ts","../../src/commands/migration-list.ts"],"mappings":";;;;;;;;;UAAiB,kBAAA;EAAA,SACN,OAAA;EAAA,SACA,IAAA;EAAA,SACA,EAAA;EAAA,SACA,aAAA;EAAA,SACA,cAAA;EAAA,SACA,SAAA;EAAA,SACA,IAAA;EAAA,SACA,kBAAA;AAAA;AAAA,UAGM,uBAAA;EAAA,SACN,OAAA;EAAA,SACA,UAAA,WAAqB,kBAAkB;AAAA;AAAA,UAGjC,mBAAA;EAAA,SACN,EAAA;EAAA,SACA,MAAA,WAAiB,uBAAuB;EAAA,SACxC,OAAA;AAAA;;;AAnBX;;;;;;;;AAAA,iBCoGsB,sCAAA,CACpB,SAAA,EAAW,sBAAA,EACX,oBAAA,WACC,OAAA,UAAiB,uBAAA;AAAA,UA6BV,oBAAA,SAA6B,oBAAoB;EAAA,SAChD,MAAA;EAAA,SACA,KAAA;EAAA,SACA,KAAA;EAAA,SACA,KAAA;AAAA;AAAA,UAGM,+BAAA;EAAA,SACN,KAAA;EAAA,SACA,SAAA,EAAW,SAAS;EAAA,SACpB,QAAA;AAAA;AAAA,iBAGK,8BAAA,CACd,MAAA,EAAQ,mBAAA,EACR,OAAA,EAAS,+BAA+B;;ADtIQ;AAGlD;;;;;;UCqJiB,sBAAA;EAAA,SACN,MAAA,WAAiB,uBAAuB;EAAA,SACxC,WAAA;AAAA;;;;AAnEX;;;;;;iBAuFgB,gBAAA,CACd,MAAA,EAAQ,sBAAA,GACP,MAAA,CAAO,mBAAA,EAAqB,kBAAA;;;;;;iBA6BT,2BAAA,CACpB,OAAA,EAAS,oBAAA,EACT,KAAA,EAAO,WAAA,EACP,EAAA,EAAI,UAAA,GACH,OAAA,CAAQ,MAAA,CAAO,mBAAA,EAAqB,kBAAA;AAAA,iBAqCvB,0BAAA,CAAA,GAA8B,OAAO"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as runMigrationList, i as renderMigrationListHumanOutput, n as executeMigrationListCommand, r as migrationSpaceListEntriesFromAggregate, t as createMigrationListCommand } from "../migration-list-
|
|
1
|
+
import { a as runMigrationList, i as renderMigrationListHumanOutput, n as executeMigrationListCommand, r as migrationSpaceListEntriesFromAggregate, t as createMigrationListCommand } from "../migration-list-CE35R5Ag.mjs";
|
|
2
2
|
export { createMigrationListCommand, executeMigrationListCommand, migrationSpaceListEntriesFromAggregate, renderMigrationListHumanOutput, runMigrationList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as CliStructuredError } from "../types-
|
|
2
|
-
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-
|
|
3
|
-
import { t as TerminalUI } from "../terminal-ui-
|
|
1
|
+
import { N as CliStructuredError } from "../types-Ci7TndCS.mjs";
|
|
2
|
+
import { n as GlobalFlags, t as CommonCommandOptions } from "../global-flags-DG4uY5tV.mjs";
|
|
3
|
+
import { t as TerminalUI } from "../terminal-ui-BbtqsQYY.mjs";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import { Result } from "@prisma-next/utils/result";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as GlobalFlags } from "../global-flags-
|
|
1
|
+
import { n as GlobalFlags } from "../global-flags-DG4uY5tV.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { Result } from "@prisma-next/utils/result";
|
|
4
4
|
import { OperationPreview } from "@prisma-next/framework-components/control";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "../migration-plan-
|
|
1
|
+
import { n as formatMigrationPlanOutput, r as resolveBundleByPrefix, t as createMigrationPlanCommand } from "../migration-plan-DHLa2Khm.mjs";
|
|
2
2
|
export { createMigrationPlanCommand, formatMigrationPlanOutput, resolveBundleByPrefix };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as CliStructuredError } from "../types-
|
|
1
|
+
import { N as CliStructuredError } from "../types-Ci7TndCS.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { Result } from "@prisma-next/utils/result";
|
|
4
4
|
import { OperationPreview } from "@prisma-next/framework-components/control";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as StatusRef, t as StatusDiagnostic } from "../migration-types-
|
|
1
|
+
import { n as StatusRef, t as StatusDiagnostic } from "../migration-types-CAQ-0TEE.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { ContractMarkerRecordLike, ContractSpaceAggregate } from "@prisma-next/migration-tools/aggregate";
|
|
4
4
|
import { MigrationGraph } from "@prisma-next/migration-tools/graph";
|
package/dist/commands/ref.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as CliStructuredError } from "../types-
|
|
1
|
+
import { N as CliStructuredError } from "../types-Ci7TndCS.mjs";
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import { Result } from "@prisma-next/utils/result";
|
|
4
4
|
import { RefEntry } from "@prisma-next/migration-tools/refs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ExecuteDbVerifyOptions, C as IntrospectOptions, D as SchemaVerifyOptions, M as executeDbVerify, O as SignOptions, S as EmitSuccess, T as OnControlProgress, _ as EmitContractConfig, a as ControlClientOptions, b as EmitOptions, c as DbInitFailureCode, d as DbInitSuccess, f as DbUpdateFailure, g as DbUpdateSuccess, h as DbUpdateResult, i as ControlClient, j as ExecuteDbVerifyResult, k as VerifyOptions, l as DbInitOptions, m as DbUpdateOptions, n as ContractEmitResult, o as ControlProgressEvent, p as DbUpdateFailureCode, r as ControlActionName, s as DbInitFailure, t as ContractEmitOptions, u as DbInitResult, v as EmitFailure, x as EmitResult, y as EmitFailureCode } from "../types-
|
|
1
|
+
import { A as ExecuteDbVerifyOptions, C as IntrospectOptions, D as SchemaVerifyOptions, M as executeDbVerify, O as SignOptions, S as EmitSuccess, T as OnControlProgress, _ as EmitContractConfig, a as ControlClientOptions, b as EmitOptions, c as DbInitFailureCode, d as DbInitSuccess, f as DbUpdateFailure, g as DbUpdateSuccess, h as DbUpdateResult, i as ControlClient, j as ExecuteDbVerifyResult, k as VerifyOptions, l as DbInitOptions, m as DbUpdateOptions, n as ContractEmitResult, o as ControlProgressEvent, p as DbUpdateFailureCode, r as ControlActionName, s as DbInitFailure, t as ContractEmitOptions, u as DbInitResult, v as EmitFailure, x as EmitResult, y as EmitFailureCode } from "../types-Ci7TndCS.mjs";
|
|
2
2
|
import { ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, SignDatabaseResult, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma-next/framework-components/control";
|
|
3
3
|
import { TargetBoundComponentDescriptor } from "@prisma-next/framework-components/components";
|
|
4
4
|
import { Contract } from "@prisma-next/contract/types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as InitOutputSchema } from "../output-
|
|
1
|
+
import { t as InitOutputSchema } from "../output-CF_hqzI-.mjs";
|
|
2
2
|
export { InitOutputSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-flags-
|
|
1
|
+
{"version":3,"file":"global-flags-DG4uY5tV.d.mts","names":[],"sources":["../src/utils/global-flags.ts"],"mappings":";KAMY,YAAA;AAAA,UAEK,WAAA;EAAA,SACN,MAAA,EAAQ,YAAY;EAAA,SACpB,cAAA;EAAA,SACA,IAAA;EAAA,SACA,KAAA;EAAA,SACA,OAAA;EAAA,SACA,KAAA;EAAA,SACA,WAAA;EAAA,SACA,GAAA;AAAA;;;;;UAOM,oBAAA;EAAA,SACN,MAAA;EAAA,SACA,IAAA;EAAA,SACA,KAAA;EAAA,SACA,CAAA;EAAA,SACA,OAAA;EAAA,SACA,CAAA;EAAA,SACA,KAAA;EAAA,SACA,KAAA;EAAA,SACA,UAAA;EAAA,SACA,WAAA;EAAA,SACA,gBAAA;EAAA,SACA,GAAA;EAAA,SACA,CAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as CliStructuredError, S as isCI, _ as createTerminalUI, b as formatErrorJson, x as formatErrorOutput } from "./command-helpers-CoceqqMl.mjs";
|
|
2
2
|
import { a as starterSchema, c as version, i as schemaSample, n as dbFile, o as targetLabel, r as defaultSchemaPath, s as targetPackageName, t as configFile } from "./cli.mjs";
|
|
3
|
-
import { i as renderInitOutro, n as buildNextSteps, r as formatInitJson, t as InitOutputSchema } from "./output-
|
|
3
|
+
import { i as renderInitOutro, n as buildNextSteps, r as formatInitJson, t as InitOutputSchema } from "./output-CF_hqzI-.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { basename, dirname, extname, isAbsolute, join, normalize } from "pathe";
|
|
6
6
|
import * as clack from "@clack/prompts";
|
|
@@ -2252,4 +2252,4 @@ function sanitisePackageName(raw) {
|
|
|
2252
2252
|
//#endregion
|
|
2253
2253
|
export { runInit };
|
|
2254
2254
|
|
|
2255
|
-
//# sourceMappingURL=init-
|
|
2255
|
+
//# sourceMappingURL=init-DE-phHWK.mjs.map
|