@prisma-next/cli 0.14.0-dev.72 → 0.14.0-dev.73
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 +13 -13
- package/dist/{client-CSjItqGl.mjs → client-DigVI8zX.mjs} +5 -8
- package/dist/{client-CSjItqGl.mjs.map → client-DigVI8zX.mjs.map} +1 -1
- package/dist/{command-helpers-QT2K9Et1.mjs → command-helpers-CUoKYTlG.mjs} +2 -2
- package/dist/{command-helpers-QT2K9Et1.mjs.map → command-helpers-CUoKYTlG.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 +5 -6
- package/dist/commands/migrate.mjs.map +1 -1
- package/dist/commands/migration-check.mjs +1 -1
- package/dist/commands/migration-graph.mjs +3 -3
- 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-Bz2nhSQe.mjs → contract-at-errors-D8CNDD7g.mjs} +2 -2
- package/dist/{contract-at-errors-Bz2nhSQe.mjs.map → contract-at-errors-D8CNDD7g.mjs.map} +1 -1
- package/dist/{contract-emit-DngUbUIn.mjs → contract-emit-sYrqzsdN.mjs} +4 -8
- package/dist/contract-emit-sYrqzsdN.mjs.map +1 -0
- package/dist/{contract-emit-DxYG_LFW.mjs → contract-emit-wgqrOXUI.mjs} +3 -3
- package/dist/{contract-emit-DxYG_LFW.mjs.map → contract-emit-wgqrOXUI.mjs.map} +1 -1
- package/dist/{contract-infer-oN6sO3KL.mjs → contract-infer-6SQnnVj7.mjs} +3 -3
- package/dist/{contract-infer-oN6sO3KL.mjs.map → contract-infer-6SQnnVj7.mjs.map} +1 -1
- package/dist/{contract-space-aggregate-loader-BtDPwApY.mjs → contract-space-aggregate-loader-DpB4x97a.mjs} +62 -4
- package/dist/contract-space-aggregate-loader-DpB4x97a.mjs.map +1 -0
- package/dist/{db-verify-C7OrrXoL.mjs → db-verify-CEsG5Gek.mjs} +4 -4
- package/dist/{db-verify-C7OrrXoL.mjs.map → db-verify-CEsG5Gek.mjs.map} +1 -1
- package/dist/exports/control-api.d.mts.map +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +2 -2
- package/dist/{format-CuwbZywI.mjs → format-CjongNb1.mjs} +2 -2
- package/dist/{format-CuwbZywI.mjs.map → format-CjongNb1.mjs.map} +1 -1
- package/dist/{framework-components-DDFn0JuW.mjs → framework-components-BbnM1RYm.mjs} +2 -2
- package/dist/{framework-components-DDFn0JuW.mjs.map → framework-components-BbnM1RYm.mjs.map} +1 -1
- package/dist/{init-BilLYqQ8.mjs → init-D8YFfaD6.mjs} +3 -3
- package/dist/{init-BilLYqQ8.mjs.map → init-D8YFfaD6.mjs.map} +1 -1
- package/dist/{inspect-live-schema-B7Mbupr3.mjs → inspect-live-schema-CEt_ztBJ.mjs} +3 -3
- package/dist/{inspect-live-schema-B7Mbupr3.mjs.map → inspect-live-schema-CEt_ztBJ.mjs.map} +1 -1
- package/dist/{migration-check-DLikkbJE.mjs → migration-check-BJVt-B22.mjs} +4 -5
- package/dist/{migration-check-DLikkbJE.mjs.map → migration-check-BJVt-B22.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-BRT5yq_f.mjs → migration-command-scaffold-CJO3tjiR.mjs} +3 -3
- package/dist/{migration-command-scaffold-BRT5yq_f.mjs.map → migration-command-scaffold-CJO3tjiR.mjs.map} +1 -1
- package/dist/{migration-list-B9Fs3m_y.mjs → migration-list-DTYM8xvm.mjs} +3 -3
- package/dist/{migration-list-B9Fs3m_y.mjs.map → migration-list-DTYM8xvm.mjs.map} +1 -1
- package/dist/{migration-log-BCWLCKe_.mjs → migration-log-qZ8LpQIl.mjs} +3 -3
- package/dist/{migration-log-BCWLCKe_.mjs.map → migration-log-qZ8LpQIl.mjs.map} +1 -1
- package/dist/{migration-path-target-ZbmLeKaI.mjs → migration-path-target-DmNwsDgs.mjs} +2 -2
- package/dist/{migration-path-target-ZbmLeKaI.mjs.map → migration-path-target-DmNwsDgs.mjs.map} +1 -1
- package/dist/{migration-plan-BTiBCHeD.mjs → migration-plan-CfPrB80t.mjs} +5 -6
- package/dist/{migration-plan-BTiBCHeD.mjs.map → migration-plan-CfPrB80t.mjs.map} +1 -1
- package/dist/{migration-status-B6b1b7Pj.mjs → migration-status-CJqH7kX9.mjs} +5 -5
- package/dist/{migration-status-B6b1b7Pj.mjs.map → migration-status-CJqH7kX9.mjs.map} +1 -1
- package/dist/{telemetry-CzTG8swa.mjs → telemetry-DHBBq5wT.mjs} +2 -2
- package/dist/{telemetry-CzTG8swa.mjs.map → telemetry-DHBBq5wT.mjs.map} +1 -1
- package/dist/{verify-NGJUoMUV.mjs → verify-DDCb0R2r.mjs} +2 -2
- package/dist/{verify-NGJUoMUV.mjs.map → verify-DDCb0R2r.mjs.map} +1 -1
- package/package.json +21 -21
- package/src/control-api/client.ts +3 -20
- package/src/control-api/operations/contract-emit.ts +1 -20
- package/dist/contract-emit-DngUbUIn.mjs.map +0 -1
- package/dist/contract-space-aggregate-loader-BtDPwApY.mjs.map +0 -1
- package/dist/extension-pack-inputs-1ySHqxKG.mjs +0 -62
- package/dist/extension-pack-inputs-1ySHqxKG.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as isCI, O as formatCommandHelp, g as parseGlobalFlagsOrExit, h as parseGlobalFlags, k as formatRootHelp, l as setCommandDescriptions, m as deriveCanPrompt, t as addGlobalOptions, u as setCommandExamples, v as installShutdownHandlers } from "./command-helpers-
|
|
3
|
-
import { t as createContractEmitCommand } from "./contract-emit-
|
|
4
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
2
|
+
import { D as isCI, O as formatCommandHelp, g as parseGlobalFlagsOrExit, h as parseGlobalFlags, k as formatRootHelp, l as setCommandDescriptions, m as deriveCanPrompt, t as addGlobalOptions, u as setCommandExamples, v as installShutdownHandlers } from "./command-helpers-CUoKYTlG.mjs";
|
|
3
|
+
import { t as createContractEmitCommand } from "./contract-emit-wgqrOXUI.mjs";
|
|
4
|
+
import { t as createContractInferCommand } from "./contract-infer-6SQnnVj7.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-
|
|
10
|
-
import { t as createFormatCommand } from "./format-
|
|
11
|
-
import { t as createMigrationListCommand } from "./migration-list-
|
|
9
|
+
import { t as createDbVerifyCommand } from "./db-verify-CEsG5Gek.mjs";
|
|
10
|
+
import { t as createFormatCommand } from "./format-CjongNb1.mjs";
|
|
11
|
+
import { t as createMigrationListCommand } from "./migration-list-DTYM8xvm.mjs";
|
|
12
12
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
13
|
-
import { t as createMigrationCheckCommand } from "./migration-check-
|
|
13
|
+
import { t as createMigrationCheckCommand } from "./migration-check-BJVt-B22.mjs";
|
|
14
14
|
import { createMigrationGraphCommand } from "./commands/migration-graph.mjs";
|
|
15
|
-
import { t as createMigrationLogCommand } from "./migration-log-
|
|
15
|
+
import { t as createMigrationLogCommand } from "./migration-log-qZ8LpQIl.mjs";
|
|
16
16
|
import { createMigrationNewCommand } from "./commands/migration-new.mjs";
|
|
17
|
-
import { t as createMigrationPlanCommand } from "./migration-plan-
|
|
17
|
+
import { t as createMigrationPlanCommand } from "./migration-plan-CfPrB80t.mjs";
|
|
18
18
|
import { createMigrationShowCommand } from "./commands/migration-show.mjs";
|
|
19
|
-
import { r as createMigrationStatusCommand } from "./migration-status-
|
|
19
|
+
import { r as createMigrationStatusCommand } from "./migration-status-CJqH7kX9.mjs";
|
|
20
20
|
import { createRefCommand } from "./commands/ref.mjs";
|
|
21
|
-
import { t as createTelemetryCommand } from "./telemetry-
|
|
21
|
+
import { t as createTelemetryCommand } from "./telemetry-DHBBq5wT.mjs";
|
|
22
22
|
import { Command } from "commander";
|
|
23
23
|
import { DEFAULT_CONTRACT_SOURCE_DIR } from "@prisma-next/config/config-types";
|
|
24
24
|
import { ensureInstallationId, readUserConfig, resolveGating, runTelemetry, userConfigPath } from "@prisma-next/cli-telemetry";
|
|
25
25
|
import { distance } from "closest-match";
|
|
26
26
|
import { fileURLToPath } from "node:url";
|
|
27
27
|
//#region package.json
|
|
28
|
-
var version = "0.14.0-dev.
|
|
28
|
+
var version = "0.14.0-dev.73";
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/commands/init/templates/code-templates.ts
|
|
31
31
|
function targetPackageName(target) {
|
|
@@ -294,7 +294,7 @@ Exit codes (see CLI Style Guide § Exit Codes):
|
|
|
294
294
|
"prisma-next init --no-skill # skip the skills install (air-gapped / restricted env)"
|
|
295
295
|
]);
|
|
296
296
|
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) => {
|
|
297
|
-
const { runInit } = await import("./init-
|
|
297
|
+
const { runInit } = await import("./init-D8YFfaD6.mjs");
|
|
298
298
|
const flags = parseGlobalFlagsOrExit(options);
|
|
299
299
|
const canPrompt = deriveCanPrompt({
|
|
300
300
|
flagsInteractive: flags.interactive,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { F as CliStructuredError } from "./command-helpers-
|
|
2
|
-
import {
|
|
3
|
-
import { t as assertFrameworkComponentsCompatible } from "./framework-components-DDFn0JuW.mjs";
|
|
1
|
+
import { F as CliStructuredError } from "./command-helpers-CUoKYTlG.mjs";
|
|
2
|
+
import { t as assertFrameworkComponentsCompatible } from "./framework-components-BbnM1RYm.mjs";
|
|
4
3
|
import { t as enrichContract } from "./contract-enrichment-gn9sWbPw.mjs";
|
|
5
|
-
import { t as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-
|
|
4
|
+
import { t as buildContractSpaceAggregate } from "./contract-space-aggregate-loader-DpB4x97a.mjs";
|
|
6
5
|
import { emit } from "@prisma-next/emitter";
|
|
7
6
|
import { ifDefined } from "@prisma-next/utils/defined";
|
|
8
7
|
import { notOk, ok } from "@prisma-next/utils/result";
|
|
@@ -1481,11 +1480,9 @@ var ControlClientImpl = class {
|
|
|
1481
1480
|
});
|
|
1482
1481
|
try {
|
|
1483
1482
|
const stack = this.stack;
|
|
1484
|
-
const extensionInputs = toExtensionInputs(blindCast(stack.extensionPacks));
|
|
1485
|
-
const composedExtensionContracts = new Map(extensionInputs.filter((p) => p.contractSpace !== void 0).map((p) => [p.id, blindCast(p.contractSpace.contractJson)]));
|
|
1486
1483
|
const sourceContext = {
|
|
1487
1484
|
composedExtensionPacks: stack.extensionPacks.map((p) => p.id),
|
|
1488
|
-
composedExtensionContracts,
|
|
1485
|
+
composedExtensionContracts: stack.extensionContracts,
|
|
1489
1486
|
scalarTypeDescriptors: stack.scalarTypeDescriptors,
|
|
1490
1487
|
authoringContributions: stack.authoringContributions,
|
|
1491
1488
|
codecLookup: stack.codecLookup,
|
|
@@ -1597,4 +1594,4 @@ var ControlClientImpl = class {
|
|
|
1597
1594
|
//#endregion
|
|
1598
1595
|
export { executeDbInit as a, executeDbUpdate as i, planSpacePath as n, ContractValidationError as o, executeDbVerify as r, createControlClient as t };
|
|
1599
1596
|
|
|
1600
|
-
//# sourceMappingURL=client-
|
|
1597
|
+
//# sourceMappingURL=client-DigVI8zX.mjs.map
|