prisma-next 0.12.0-dev.20 → 0.12.0-dev.22
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 -8
- package/dist/{client-Cdxcme1x.mjs → client-BHe8szOW.mjs} +4 -4
- package/dist/{client-Cdxcme1x.mjs.map → client-BHe8szOW.mjs.map} +1 -1
- package/dist/commands/contract-infer.mjs +1 -1
- package/dist/commands/db-init.mjs +2 -2
- package/dist/commands/db-schema.mjs +1 -1
- package/dist/commands/db-sign.mjs +1 -1
- package/dist/commands/db-update.mjs +2 -2
- package/dist/commands/db-verify.mjs +1 -1
- package/dist/commands/migrate.d.mts +1 -1
- package/dist/commands/migrate.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 -3
- package/dist/commands/migration-list.mjs +1 -1
- package/dist/commands/migration-log.d.mts +7 -19
- package/dist/commands/migration-log.d.mts.map +1 -1
- package/dist/commands/migration-log.mjs +1 -137
- 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 +1 -1
- package/dist/commands/migration-status.d.mts +1 -1
- package/dist/commands/migration-status.mjs +1 -1
- package/dist/commands/ref.d.mts +1 -1
- package/dist/commands/telemetry/index.mjs +1 -1
- package/dist/{contract-infer-DaFPNrZH.mjs → contract-infer-OCn12Zvn.mjs} +2 -2
- package/dist/{contract-infer-DaFPNrZH.mjs.map → contract-infer-OCn12Zvn.mjs.map} +1 -1
- package/dist/{db-verify-BSA1a_W_.mjs → db-verify-DJxengYP.mjs} +2 -2
- package/dist/{db-verify-BSA1a_W_.mjs.map → db-verify-DJxengYP.mjs.map} +1 -1
- package/dist/exports/control-api.d.mts +1 -1
- package/dist/exports/control-api.mjs +1 -1
- package/dist/exports/init-output.mjs +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts → global-flags-DSkV6iYT.d.mts} +1 -1
- package/dist/{global-flags-DG4uY5tV.d.mts.map → global-flags-DSkV6iYT.d.mts.map} +1 -1
- package/dist/{init-B6kKrmf7.mjs → init-S2vxszo_.mjs} +2 -2
- package/dist/{init-B6kKrmf7.mjs.map → init-S2vxszo_.mjs.map} +1 -1
- package/dist/{inspect-live-schema-Dn56wDhG.mjs → inspect-live-schema-DVZlDlnF.mjs} +2 -2
- package/dist/{inspect-live-schema-Dn56wDhG.mjs.map → inspect-live-schema-DVZlDlnF.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-V52dV2Tv.mjs → migration-command-scaffold-Cs7Ky-m5.mjs} +2 -2
- package/dist/{migration-command-scaffold-V52dV2Tv.mjs.map → migration-command-scaffold-Cs7Ky-m5.mjs.map} +1 -1
- package/dist/{migration-graph-DKl_IYsF.mjs → migration-graph-CeBB07Cc.mjs} +2 -2
- package/dist/{migration-graph-DKl_IYsF.mjs.map → migration-graph-CeBB07Cc.mjs.map} +1 -1
- package/dist/{migration-list-styler-COQbZmXk.mjs → migration-list-styler-CsMECsY4.mjs} +2 -2
- package/dist/{migration-list-styler-COQbZmXk.mjs.map → migration-list-styler-CsMECsY4.mjs.map} +1 -1
- package/dist/migration-log-Cj-T-r0o.mjs +203 -0
- package/dist/migration-log-Cj-T-r0o.mjs.map +1 -0
- package/dist/{migration-plan-CaeKCKp4.mjs → migration-plan-BQAbZkj_.mjs} +1 -1
- package/dist/{migration-plan-CaeKCKp4.mjs.map → migration-plan-BQAbZkj_.mjs.map} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts → migration-types-Bhmj0RSa.d.mts} +1 -1
- package/dist/{migration-types-CAQ-0TEE.d.mts.map → migration-types-Bhmj0RSa.d.mts.map} +1 -1
- package/dist/{output-CF_hqzI-.mjs → output-BD61elic.mjs} +1 -1
- package/dist/{output-CF_hqzI-.mjs.map → output-BD61elic.mjs.map} +1 -1
- package/dist/{telemetry-Q88WHwlv.mjs → telemetry-Bu85x2Gy.mjs} +1 -1
- package/dist/{telemetry-Q88WHwlv.mjs.map → telemetry-Bu85x2Gy.mjs.map} +1 -1
- package/dist/{terminal-ui-C3xGyxW-.d.mts → terminal-ui-BgLiAOYi.d.mts} +1 -1
- package/dist/{terminal-ui-C3xGyxW-.d.mts.map → terminal-ui-BgLiAOYi.d.mts.map} +1 -1
- package/dist/{types-DiC683UW.d.mts → types-C8OcDFBe.d.mts} +1 -1
- package/dist/{types-DiC683UW.d.mts.map → types-C8OcDFBe.d.mts.map} +1 -1
- package/package.json +11 -11
- package/dist/commands/migration-log.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { C as isCI, T as formatRootHelp, _ as parseGlobalFlagsOrExit, g as parseGlobalFlags, h as deriveCanPrompt, l as setCommandDescriptions, t as addGlobalOptions, u as setCommandExamples, w as formatCommandHelp, y as installShutdownHandlers } from "./command-helpers-Cmdqyhz9.mjs";
|
|
3
3
|
import { t as createContractEmitCommand } from "./contract-emit-DPMij44i.mjs";
|
|
4
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
4
|
+
import { t as createContractInferCommand } from "./contract-infer-OCn12Zvn.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-DJxengYP.mjs";
|
|
10
10
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
11
11
|
import { t as createMigrationCheckCommand } from "./migration-check-DzH1u-O1.mjs";
|
|
12
|
-
import { t as createMigrationGraphCommand } from "./migration-graph-
|
|
12
|
+
import { t as createMigrationGraphCommand } from "./migration-graph-CeBB07Cc.mjs";
|
|
13
13
|
import { createMigrationListCommand } from "./commands/migration-list.mjs";
|
|
14
|
-
import { createMigrationLogCommand } from "./
|
|
14
|
+
import { t as createMigrationLogCommand } from "./migration-log-Cj-T-r0o.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-BQAbZkj_.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";
|
|
20
|
-
import { t as createTelemetryCommand } from "./telemetry-
|
|
20
|
+
import { t as createTelemetryCommand } from "./telemetry-Bu85x2Gy.mjs";
|
|
21
21
|
import { Command } from "commander";
|
|
22
22
|
import { DEFAULT_CONTRACT_SOURCE_DIR } from "@prisma-next/config/config-types";
|
|
23
23
|
import { ensureInstallationId, readUserConfig, resolveGating, runTelemetry, userConfigPath } from "@prisma-next/cli-telemetry";
|
|
24
24
|
import { distance } from "closest-match";
|
|
25
25
|
import { fileURLToPath } from "node:url";
|
|
26
26
|
//#region package.json
|
|
27
|
-
var version = "0.12.0-dev.
|
|
27
|
+
var version = "0.12.0-dev.22";
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region src/commands/init/templates/code-templates.ts
|
|
30
30
|
function targetPackageName(target) {
|
|
@@ -293,7 +293,7 @@ Exit codes (see CLI Style Guide § Exit Codes):
|
|
|
293
293
|
"prisma-next init --no-skill # skip the skills install (air-gapped / restricted env)"
|
|
294
294
|
]);
|
|
295
295
|
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) => {
|
|
296
|
-
const { runInit } = await import("./init-
|
|
296
|
+
const { runInit } = await import("./init-S2vxszo_.mjs");
|
|
297
297
|
const flags = parseGlobalFlagsOrExit(options);
|
|
298
298
|
const canPrompt = deriveCanPrompt({
|
|
299
299
|
flagsInteractive: flags.interactive,
|
|
@@ -1307,12 +1307,12 @@ var ControlClientImpl = class {
|
|
|
1307
1307
|
const { driver, familyInstance } = await this.ensureConnected();
|
|
1308
1308
|
return familyInstance.readAllMarkers({ driver });
|
|
1309
1309
|
}
|
|
1310
|
-
/** Reads the per-migration journal
|
|
1311
|
-
async readLedger(space
|
|
1310
|
+
/** Reads the per-migration journal; omit `space` to return every space. */
|
|
1311
|
+
async readLedger(space) {
|
|
1312
1312
|
const { driver, familyInstance } = await this.ensureConnected();
|
|
1313
1313
|
return familyInstance.readLedger({
|
|
1314
1314
|
driver,
|
|
1315
|
-
space
|
|
1315
|
+
...ifDefined("space", space)
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
1318
|
async migrationApply(options) {
|
|
@@ -1506,4 +1506,4 @@ var ControlClientImpl = class {
|
|
|
1506
1506
|
//#endregion
|
|
1507
1507
|
export { ContractValidationError as a, executeDbInit as i, executeDbVerify as n, executeDbUpdate as r, createControlClient as t };
|
|
1508
1508
|
|
|
1509
|
-
//# sourceMappingURL=client-
|
|
1509
|
+
//# sourceMappingURL=client-BHe8szOW.mjs.map
|