@prisma-next/cli 0.11.0-dev.70 → 0.11.0-dev.71
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 +10 -10
- package/dist/{client-6WehTnUh.mjs → client-KgJorIvG.mjs} +4 -4
- package/dist/{client-6WehTnUh.mjs.map → client-KgJorIvG.mjs.map} +1 -1
- package/dist/{command-helpers-CoceqqMl.mjs → command-helpers-Bbw1GbwL.mjs} +3 -3
- package/dist/{command-helpers-CoceqqMl.mjs.map → command-helpers-Bbw1GbwL.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 +4 -4
- package/dist/commands/db-schema.mjs +3 -3
- package/dist/commands/db-sign.mjs +4 -4
- package/dist/commands/db-update.mjs +5 -5
- package/dist/commands/db-verify.mjs +1 -1
- package/dist/commands/migrate.d.mts +1 -1
- package/dist/commands/migrate.mjs +5 -5
- package/dist/commands/migration-check.mjs +1 -1
- package/dist/commands/migration-graph.d.mts +4 -4
- package/dist/commands/migration-graph.mjs +1 -1
- package/dist/commands/migration-list.d.mts +3 -6
- package/dist/commands/migration-list.d.mts.map +1 -1
- package/dist/commands/migration-list.mjs +189 -1
- package/dist/commands/migration-list.mjs.map +1 -0
- package/dist/commands/migration-log.d.mts +3 -3
- package/dist/commands/migration-log.mjs +3 -3
- package/dist/commands/migration-new.mjs +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-show.mjs +3 -3
- package/dist/commands/migration-status.d.mts +1 -1
- package/dist/commands/migration-status.mjs +3 -3
- package/dist/commands/ref.d.mts +1 -1
- package/dist/commands/ref.mjs +2 -2
- package/dist/{contract-at-errors-Bhf2jnkp.mjs → contract-at-errors-BxP-TOMl.mjs} +2 -2
- package/dist/{contract-at-errors-Bhf2jnkp.mjs.map → contract-at-errors-BxP-TOMl.mjs.map} +1 -1
- package/dist/{contract-emit-DxEfEc-M.mjs → contract-emit-D-4jrNve.mjs} +3 -3
- package/dist/{contract-emit-DxEfEc-M.mjs.map → contract-emit-D-4jrNve.mjs.map} +1 -1
- package/dist/{contract-emit-C47r1loe.mjs → contract-emit-DxcGl4Uq.mjs} +3 -3
- package/dist/{contract-emit-C47r1loe.mjs.map → contract-emit-DxcGl4Uq.mjs.map} +1 -1
- package/dist/{contract-infer-BLiomU8g.mjs → contract-infer-D8uEbJuu.mjs} +3 -3
- package/dist/{contract-infer-BLiomU8g.mjs.map → contract-infer-D8uEbJuu.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-lafgkTwG.mjs → contract-space-aggregate-loader-DvZwdkrr.mjs} +2 -2
- package/dist/{contract-space-aggregate-loader-lafgkTwG.mjs.map → contract-space-aggregate-loader-DvZwdkrr.mjs.map} +1 -1
- package/dist/{db-verify-D44Qj3w9.mjs → db-verify-v_vUKXTU.mjs} +4 -4
- package/dist/{db-verify-D44Qj3w9.mjs.map → db-verify-v_vUKXTU.mjs.map} +1 -1
- package/dist/exports/control-api.d.mts +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +1 -1
- package/dist/exports/init-output.mjs +1 -1
- package/dist/{framework-components-R_O3y5IW.mjs → framework-components-fYXjz_in.mjs} +2 -2
- package/dist/{framework-components-R_O3y5IW.mjs.map → framework-components-fYXjz_in.mjs.map} +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts → global-flags-DEHjV8_s.d.mts} +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts.map → global-flags-DEHjV8_s.d.mts.map} +1 -1
- package/dist/{init-DE-phHWK.mjs → init-Dzi4_BFb.mjs} +4 -4
- package/dist/{init-DE-phHWK.mjs.map → init-Dzi4_BFb.mjs.map} +1 -1
- package/dist/{inspect-live-schema-Ccnmg5bz.mjs → inspect-live-schema-C6ohV_oQ.mjs} +3 -3
- package/dist/{inspect-live-schema-Ccnmg5bz.mjs.map → inspect-live-schema-C6ohV_oQ.mjs.map} +1 -1
- package/dist/{migration-check-CKfQlAWR.mjs → migration-check-BiBJoYYW.mjs} +2 -2
- package/dist/{migration-check-CKfQlAWR.mjs.map → migration-check-BiBJoYYW.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-C_KuV0Gm.mjs → migration-command-scaffold-CjvwO6at.mjs} +3 -3
- package/dist/{migration-command-scaffold-C_KuV0Gm.mjs.map → migration-command-scaffold-CjvwO6at.mjs.map} +1 -1
- package/dist/{migration-graph-kPluRdF2.mjs → migration-graph-D7DVUElV.mjs} +4 -4
- package/dist/{migration-graph-kPluRdF2.mjs.map → migration-graph-D7DVUElV.mjs.map} +1 -1
- package/dist/{migration-list-styler-DeAwACt3.mjs → migration-list-styler-BRwF4-gy.mjs} +2 -5
- package/dist/{migration-list-styler-DeAwACt3.mjs.map → migration-list-styler-BRwF4-gy.mjs.map} +1 -1
- package/dist/{migration-plan-DHLa2Khm.mjs → migration-plan-9DJ7q7_z.mjs} +5 -5
- package/dist/{migration-plan-DHLa2Khm.mjs.map → migration-plan-9DJ7q7_z.mjs.map} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts → migration-types-D2FW63pr.d.mts} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts.map → migration-types-D2FW63pr.d.mts.map} +1 -1
- package/dist/{migrations-CjO1DsYe.mjs → migrations-Cv2jxNNK.mjs} +2 -2
- package/dist/{migrations-CjO1DsYe.mjs.map → migrations-Cv2jxNNK.mjs.map} +1 -1
- package/dist/{output-CF_hqzI-.mjs → output-B60Gw5fu.mjs} +1 -1
- package/dist/{output-CF_hqzI-.mjs.map → output-B60Gw5fu.mjs.map} +1 -1
- package/dist/{terminal-ui-BbtqsQYY.d.mts → terminal-ui-5Y6mrg93.d.mts} +3 -3
- package/dist/{terminal-ui-BbtqsQYY.d.mts.map → terminal-ui-5Y6mrg93.d.mts.map} +1 -1
- package/dist/{types-Ci7TndCS.d.mts → types-Dt_SfqFm.d.mts} +1 -1
- package/dist/{types-Ci7TndCS.d.mts.map → types-Dt_SfqFm.d.mts.map} +1 -1
- package/dist/{verify-vl983Ed-.mjs → verify-DCA9Sldu.mjs} +2 -2
- package/dist/{verify-vl983Ed-.mjs.map → verify-DCA9Sldu.mjs.map} +1 -1
- package/package.json +18 -18
- package/src/commands/migration-graph.ts +1 -1
- package/src/commands/migration-list.ts +5 -16
- package/src/utils/terminal-ui.ts +2 -2
- package/dist/migration-list-CE35R5Ag.mjs +0 -505
- package/dist/migration-list-CE35R5Ag.mjs.map +0 -1
- package/src/utils/formatters/migration-list-graph-layout.ts +0 -268
- package/src/utils/formatters/migration-list-graph-render.ts +0 -311
package/dist/cli.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as formatCommandHelp, S as isCI, g as parseGlobalFlagsOrExit, h as parseGlobalFlags, l as setCommandDescriptions, t as addGlobalOptions, u as setCommandExamples, v as installShutdownHandlers, w as formatRootHelp } from "./command-helpers-
|
|
3
|
-
import { t as createContractEmitCommand } from "./contract-emit-
|
|
4
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
2
|
+
import { C as formatCommandHelp, S as isCI, g as parseGlobalFlagsOrExit, h as parseGlobalFlags, l as setCommandDescriptions, t as addGlobalOptions, u as setCommandExamples, v as installShutdownHandlers, w as formatRootHelp } from "./command-helpers-Bbw1GbwL.mjs";
|
|
3
|
+
import { t as createContractEmitCommand } from "./contract-emit-DxcGl4Uq.mjs";
|
|
4
|
+
import { t as createContractInferCommand } from "./contract-infer-D8uEbJuu.mjs";
|
|
5
5
|
import { createDbInitCommand } from "./commands/db-init.mjs";
|
|
6
6
|
import { createDbSchemaCommand } from "./commands/db-schema.mjs";
|
|
7
7
|
import { createDbSignCommand } from "./commands/db-sign.mjs";
|
|
8
8
|
import { createDbUpdateCommand } from "./commands/db-update.mjs";
|
|
9
|
-
import { t as createDbVerifyCommand } from "./db-verify-
|
|
9
|
+
import { t as createDbVerifyCommand } from "./db-verify-v_vUKXTU.mjs";
|
|
10
10
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
11
|
-
import { t as createMigrationCheckCommand } from "./migration-check-
|
|
12
|
-
import { t as createMigrationGraphCommand } from "./migration-graph-
|
|
13
|
-
import {
|
|
11
|
+
import { t as createMigrationCheckCommand } from "./migration-check-BiBJoYYW.mjs";
|
|
12
|
+
import { t as createMigrationGraphCommand } from "./migration-graph-D7DVUElV.mjs";
|
|
13
|
+
import { createMigrationListCommand } from "./commands/migration-list.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-9DJ7q7_z.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.71";
|
|
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-Dzi4_BFb.mjs");
|
|
416
416
|
const flags = parseGlobalFlagsOrExit(options);
|
|
417
417
|
const canPrompt = deriveCanPrompt({
|
|
418
418
|
flagsInteractive: flags.interactive,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as CliStructuredError } from "./command-helpers-
|
|
2
|
-
import { t as assertFrameworkComponentsCompatible } from "./framework-components-
|
|
1
|
+
import { A as CliStructuredError } from "./command-helpers-Bbw1GbwL.mjs";
|
|
2
|
+
import { t as assertFrameworkComponentsCompatible } from "./framework-components-fYXjz_in.mjs";
|
|
3
3
|
import { t as enrichContract } from "./contract-enrichment-a0V5Y_mL.mjs";
|
|
4
|
-
import { n as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-
|
|
4
|
+
import { n as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-DvZwdkrr.mjs";
|
|
5
5
|
import { emit } from "@prisma-next/emitter";
|
|
6
6
|
import { ifDefined } from "@prisma-next/utils/defined";
|
|
7
7
|
import { notOk, ok } from "@prisma-next/utils/result";
|
|
@@ -1493,4 +1493,4 @@ var ControlClientImpl = class {
|
|
|
1493
1493
|
//#endregion
|
|
1494
1494
|
export { ContractValidationError as a, executeDbInit as i, executeDbVerify as n, executeDbUpdate as r, createControlClient as t };
|
|
1495
1495
|
|
|
1496
|
-
//# sourceMappingURL=client-
|
|
1496
|
+
//# sourceMappingURL=client-KgJorIvG.mjs.map
|