@prisma-next/cli 0.14.0-dev.20 → 0.14.0-dev.21
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 +7 -7
- package/dist/{client-Dm_Efs9g.mjs → client-Ri4Tnfhw.mjs} +3 -2
- package/dist/{client-Dm_Efs9g.mjs.map → client-Ri4Tnfhw.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 +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.mjs +1 -1
- package/dist/commands/migration-log.mjs +1 -1
- package/dist/commands/migration-show.mjs +1 -1
- package/dist/commands/migration-status.mjs +1 -1
- package/dist/{contract-emit-D4xDDFkO.mjs → contract-emit-C4i_rUXA.mjs} +2 -2
- package/dist/{contract-emit-D4xDDFkO.mjs.map → contract-emit-C4i_rUXA.mjs.map} +1 -1
- package/dist/{contract-emit-fz6pDR2n.mjs → contract-emit-CwnzLGfH.mjs} +3 -2
- package/dist/{contract-emit-fz6pDR2n.mjs.map → contract-emit-CwnzLGfH.mjs.map} +1 -1
- package/dist/{contract-infer-BMaib2U-.mjs → contract-infer-C5MVYYOB.mjs} +2 -2
- package/dist/{contract-infer-BMaib2U-.mjs.map → contract-infer-C5MVYYOB.mjs.map} +1 -1
- package/dist/{db-verify-PPxMkghu.mjs → db-verify-CHyzYwsM.mjs} +2 -2
- package/dist/{db-verify-PPxMkghu.mjs.map → db-verify-CHyzYwsM.mjs.map} +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +1 -1
- package/dist/{init-C79Yb97u.mjs → init-DCBYcJXZ.mjs} +2 -2
- package/dist/{init-C79Yb97u.mjs.map → init-DCBYcJXZ.mjs.map} +1 -1
- package/dist/{inspect-live-schema-BmgdUJcj.mjs → inspect-live-schema-DraXO0SQ.mjs} +2 -2
- package/dist/{inspect-live-schema-BmgdUJcj.mjs.map → inspect-live-schema-DraXO0SQ.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-Dv0tKmIJ.mjs → migration-command-scaffold-BZIOhPQO.mjs} +2 -2
- package/dist/{migration-command-scaffold-Dv0tKmIJ.mjs.map → migration-command-scaffold-BZIOhPQO.mjs.map} +1 -1
- package/dist/{migration-log-BlkNEV6F.mjs → migration-log-EkG_DZSn.mjs} +2 -2
- package/dist/{migration-log-BlkNEV6F.mjs.map → migration-log-EkG_DZSn.mjs.map} +1 -1
- package/dist/{migration-status-DCmV7fWX.mjs → migration-status-BXyGOG1p.mjs} +2 -2
- package/dist/{migration-status-DCmV7fWX.mjs.map → migration-status-BXyGOG1p.mjs.map} +1 -1
- package/package.json +21 -21
- package/src/control-api/client.ts +4 -3
- package/src/control-api/operations/contract-emit.ts +6 -6
package/dist/cli.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
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-6cNJZ863.mjs";
|
|
3
|
-
import { t as createContractEmitCommand } from "./contract-emit-
|
|
4
|
-
import { t as createContractInferCommand } from "./contract-infer-
|
|
3
|
+
import { t as createContractEmitCommand } from "./contract-emit-C4i_rUXA.mjs";
|
|
4
|
+
import { t as createContractInferCommand } from "./contract-infer-C5MVYYOB.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-CHyzYwsM.mjs";
|
|
10
10
|
import { t as createFormatCommand } from "./format-C3XdaDuA.mjs";
|
|
11
11
|
import { t as createMigrationListCommand } from "./migration-list-DVHVmMrf.mjs";
|
|
12
12
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
13
13
|
import { t as createMigrationCheckCommand } from "./migration-check-DWX4qdOB.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-EkG_DZSn.mjs";
|
|
16
16
|
import { createMigrationNewCommand } from "./commands/migration-new.mjs";
|
|
17
17
|
import { t as createMigrationPlanCommand } from "./migration-plan-o2aqjnfd.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-BXyGOG1p.mjs";
|
|
20
20
|
import { createRefCommand } from "./commands/ref.mjs";
|
|
21
21
|
import { t as createTelemetryCommand } from "./telemetry-BckOSUWG.mjs";
|
|
22
22
|
import { Command } from "commander";
|
|
@@ -25,7 +25,7 @@ import { ensureInstallationId, readUserConfig, resolveGating, runTelemetry, user
|
|
|
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.21";
|
|
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-DCBYcJXZ.mjs");
|
|
298
298
|
const flags = parseGlobalFlagsOrExit(options);
|
|
299
299
|
const canPrompt = deriveCanPrompt({
|
|
300
300
|
flagsInteractive: flags.interactive,
|
|
@@ -1559,9 +1559,10 @@ var ControlClientImpl = class {
|
|
|
1559
1559
|
});
|
|
1560
1560
|
try {
|
|
1561
1561
|
const enrichedIR = enrichContract(contractRaw, this.frameworkComponents ?? []);
|
|
1562
|
+
const rawContractJson = this.options.target.contractSerializer.serializeContract(enrichedIR);
|
|
1562
1563
|
let deserializedContract;
|
|
1563
1564
|
try {
|
|
1564
|
-
deserializedContract = this.familyInstance.deserializeContract(
|
|
1565
|
+
deserializedContract = this.familyInstance.deserializeContract(rawContractJson);
|
|
1565
1566
|
} catch (error) {
|
|
1566
1567
|
onProgress?.({
|
|
1567
1568
|
action: "emit",
|
|
@@ -1609,4 +1610,4 @@ var ControlClientImpl = class {
|
|
|
1609
1610
|
//#endregion
|
|
1610
1611
|
export { executeDbInit as a, executeDbUpdate as i, planMemberPath as n, ContractValidationError as o, executeDbVerify as r, createControlClient as t };
|
|
1611
1612
|
|
|
1612
|
-
//# sourceMappingURL=client-
|
|
1613
|
+
//# sourceMappingURL=client-Ri4Tnfhw.mjs.map
|