prisma-next 0.12.0-dev.40 → 0.12.0-dev.42
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-BNdG504y.mjs → client-Dk-zRFuT.mjs} +4 -3
- package/dist/{client-BNdG504y.mjs.map → client-Dk-zRFuT.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-COg18szA.mjs → contract-emit-CZU0UO6M.mjs} +2 -2
- package/dist/{contract-emit-COg18szA.mjs.map → contract-emit-CZU0UO6M.mjs.map} +1 -1
- package/dist/{contract-emit-KyJNQK5-.mjs → contract-emit-FetLZ3jn.mjs} +3 -3
- package/dist/{contract-emit-KyJNQK5-.mjs.map → contract-emit-FetLZ3jn.mjs.map} +1 -1
- package/dist/{contract-infer-IEp0227u.mjs → contract-infer-3wtOsS_H.mjs} +2 -2
- package/dist/{contract-infer-IEp0227u.mjs.map → contract-infer-3wtOsS_H.mjs.map} +1 -1
- package/dist/{db-verify-C9k5KAyI.mjs → db-verify-BisylXFZ.mjs} +2 -2
- package/dist/{db-verify-C9k5KAyI.mjs.map → db-verify-BisylXFZ.mjs.map} +1 -1
- package/dist/exports/control-api.mjs +2 -2
- package/dist/exports/index.mjs +1 -1
- package/dist/{init-BIxw3l7t.mjs → init-BTE2U7lG.mjs} +2 -2
- package/dist/{init-BIxw3l7t.mjs.map → init-BTE2U7lG.mjs.map} +1 -1
- package/dist/{inspect-live-schema-DXUFGQDe.mjs → inspect-live-schema-Cy9Y4wsL.mjs} +2 -2
- package/dist/{inspect-live-schema-DXUFGQDe.mjs.map → inspect-live-schema-Cy9Y4wsL.mjs.map} +1 -1
- package/dist/{migration-command-scaffold-omgKpt3K.mjs → migration-command-scaffold-BxOxtyJ6.mjs} +2 -2
- package/dist/{migration-command-scaffold-omgKpt3K.mjs.map → migration-command-scaffold-BxOxtyJ6.mjs.map} +1 -1
- package/dist/{migration-log-CW0EjxSr.mjs → migration-log-DWI6dZyi.mjs} +2 -2
- package/dist/{migration-log-CW0EjxSr.mjs.map → migration-log-DWI6dZyi.mjs.map} +1 -1
- package/dist/{migration-status-GZ6XfbWs.mjs → migration-status-DI6Ldjbo.mjs} +2 -2
- package/dist/{migration-status-GZ6XfbWs.mjs.map → migration-status-DI6Ldjbo.mjs.map} +1 -1
- package/package.json +11 -11
package/dist/cli.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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-xvg9oq4T.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-CZU0UO6M.mjs";
|
|
4
|
+
import { t as createContractInferCommand } from "./contract-infer-3wtOsS_H.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-BisylXFZ.mjs";
|
|
10
10
|
import { createMigrateCommand } from "./commands/migrate.mjs";
|
|
11
11
|
import { t as createMigrationCheckCommand } from "./migration-check-CUavU7U9.mjs";
|
|
12
12
|
import { t as createMigrationListCommand } from "./migration-list-jK6QeczE.mjs";
|
|
13
13
|
import { createMigrationGraphCommand } from "./commands/migration-graph.mjs";
|
|
14
|
-
import { t as createMigrationLogCommand } from "./migration-log-
|
|
14
|
+
import { t as createMigrationLogCommand } from "./migration-log-DWI6dZyi.mjs";
|
|
15
15
|
import { createMigrationNewCommand } from "./commands/migration-new.mjs";
|
|
16
16
|
import { t as createMigrationPlanCommand } from "./migration-plan-NHdlUwPG.mjs";
|
|
17
17
|
import { createMigrationShowCommand } from "./commands/migration-show.mjs";
|
|
18
|
-
import { r as createMigrationStatusCommand } from "./migration-status-
|
|
18
|
+
import { r as createMigrationStatusCommand } from "./migration-status-DI6Ldjbo.mjs";
|
|
19
19
|
import { createRefCommand } from "./commands/ref.mjs";
|
|
20
20
|
import { t as createTelemetryCommand } from "./telemetry-DQP0BvKv.mjs";
|
|
21
21
|
import { Command } from "commander";
|
|
@@ -24,7 +24,7 @@ import { ensureInstallationId, readUserConfig, resolveGating, runTelemetry, user
|
|
|
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.42";
|
|
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-BTE2U7lG.mjs");
|
|
297
297
|
const flags = parseGlobalFlagsOrExit(options);
|
|
298
298
|
const canPrompt = deriveCanPrompt({
|
|
299
299
|
flagsInteractive: flags.interactive,
|
|
@@ -1468,8 +1468,9 @@ var ControlClientImpl = class {
|
|
|
1468
1468
|
});
|
|
1469
1469
|
try {
|
|
1470
1470
|
const enrichedIR = enrichContract(contractRaw, this.frameworkComponents ?? []);
|
|
1471
|
+
let deserializedContract;
|
|
1471
1472
|
try {
|
|
1472
|
-
this.familyInstance.deserializeContract(enrichedIR);
|
|
1473
|
+
deserializedContract = this.familyInstance.deserializeContract(enrichedIR);
|
|
1473
1474
|
} catch (error) {
|
|
1474
1475
|
onProgress?.({
|
|
1475
1476
|
action: "emit",
|
|
@@ -1484,7 +1485,7 @@ var ControlClientImpl = class {
|
|
|
1484
1485
|
meta: void 0
|
|
1485
1486
|
});
|
|
1486
1487
|
}
|
|
1487
|
-
const result = await emit(
|
|
1488
|
+
const result = await emit(deserializedContract, this.stack, this.options.family.emission, { serializeContract: (contract) => this.options.target.contractSerializer.serializeContract(contract) });
|
|
1488
1489
|
onProgress?.({
|
|
1489
1490
|
action: "emit",
|
|
1490
1491
|
kind: "spanEnd",
|
|
@@ -1517,4 +1518,4 @@ var ControlClientImpl = class {
|
|
|
1517
1518
|
//#endregion
|
|
1518
1519
|
export { ContractValidationError as a, executeDbInit as i, executeDbVerify as n, executeDbUpdate as r, createControlClient as t };
|
|
1519
1520
|
|
|
1520
|
-
//# sourceMappingURL=client-
|
|
1521
|
+
//# sourceMappingURL=client-Dk-zRFuT.mjs.map
|