prisma-next 0.5.0-dev.9 → 0.6.0-dev.1

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.
Files changed (142) hide show
  1. package/dist/cli-errors-B9OBbled.d.mts +3 -0
  2. package/dist/cli-errors-D3_sMh2K.mjs +33 -0
  3. package/dist/cli-errors-D3_sMh2K.mjs.map +1 -0
  4. package/dist/cli.mjs +16 -78
  5. package/dist/cli.mjs.map +1 -1
  6. package/dist/client-qVH-rEgd.mjs +1595 -0
  7. package/dist/client-qVH-rEgd.mjs.map +1 -0
  8. package/dist/{result-handler-Ba3zWQsI.mjs → command-helpers-BeZHkxV8.mjs} +70 -47
  9. package/dist/command-helpers-BeZHkxV8.mjs.map +1 -0
  10. package/dist/commands/contract-emit.d.mts.map +1 -1
  11. package/dist/commands/contract-emit.mjs +2 -4
  12. package/dist/commands/contract-infer.d.mts.map +1 -1
  13. package/dist/commands/contract-infer.mjs +2 -4
  14. package/dist/commands/db-init.d.mts.map +1 -1
  15. package/dist/commands/db-init.mjs +16 -13
  16. package/dist/commands/db-init.mjs.map +1 -1
  17. package/dist/commands/db-schema.d.mts.map +1 -1
  18. package/dist/commands/db-schema.mjs +6 -7
  19. package/dist/commands/db-schema.mjs.map +1 -1
  20. package/dist/commands/db-sign.d.mts.map +1 -1
  21. package/dist/commands/db-sign.mjs +9 -9
  22. package/dist/commands/db-sign.mjs.map +1 -1
  23. package/dist/commands/db-update.d.mts.map +1 -1
  24. package/dist/commands/db-update.mjs +15 -13
  25. package/dist/commands/db-update.mjs.map +1 -1
  26. package/dist/commands/db-verify.d.mts.map +1 -1
  27. package/dist/commands/db-verify.mjs +1 -321
  28. package/dist/commands/migration-apply.d.mts +28 -13
  29. package/dist/commands/migration-apply.d.mts.map +1 -1
  30. package/dist/commands/migration-apply.mjs +55 -151
  31. package/dist/commands/migration-apply.mjs.map +1 -1
  32. package/dist/commands/migration-new.d.mts +0 -1
  33. package/dist/commands/migration-new.d.mts.map +1 -1
  34. package/dist/commands/migration-new.mjs +34 -40
  35. package/dist/commands/migration-new.mjs.map +1 -1
  36. package/dist/commands/migration-plan.d.mts +33 -6
  37. package/dist/commands/migration-plan.d.mts.map +1 -1
  38. package/dist/commands/migration-plan.mjs +2 -348
  39. package/dist/commands/migration-ref.d.mts +1 -1
  40. package/dist/commands/migration-ref.d.mts.map +1 -1
  41. package/dist/commands/migration-ref.mjs +8 -12
  42. package/dist/commands/migration-ref.mjs.map +1 -1
  43. package/dist/commands/migration-show.d.mts +13 -7
  44. package/dist/commands/migration-show.d.mts.map +1 -1
  45. package/dist/commands/migration-show.mjs +35 -36
  46. package/dist/commands/migration-show.mjs.map +1 -1
  47. package/dist/commands/migration-status.d.mts +126 -5
  48. package/dist/commands/migration-status.d.mts.map +1 -1
  49. package/dist/commands/migration-status.mjs +2 -4
  50. package/dist/{config-loader-C25b63rJ.mjs → config-loader-B6sJjXTv.mjs} +3 -5
  51. package/dist/config-loader-B6sJjXTv.mjs.map +1 -0
  52. package/dist/config-loader.d.mts +0 -1
  53. package/dist/config-loader.d.mts.map +1 -1
  54. package/dist/config-loader.mjs +2 -3
  55. package/dist/contract-emit-9DBda5Ou.mjs +150 -0
  56. package/dist/contract-emit-9DBda5Ou.mjs.map +1 -0
  57. package/dist/contract-emit-B77TsJqf.mjs +327 -0
  58. package/dist/contract-emit-B77TsJqf.mjs.map +1 -0
  59. package/dist/{contract-enrichment-CAOELa-H.mjs → contract-enrichment-Dani0mMW.mjs} +4 -6
  60. package/dist/contract-enrichment-Dani0mMW.mjs.map +1 -0
  61. package/dist/{contract-infer-D9cC3rJm.mjs → contract-infer-BK9YFGEG.mjs} +13 -22
  62. package/dist/contract-infer-BK9YFGEG.mjs.map +1 -0
  63. package/dist/db-verify-C0y1PCO2.mjs +404 -0
  64. package/dist/db-verify-C0y1PCO2.mjs.map +1 -0
  65. package/dist/exports/config-types.mjs +1 -2
  66. package/dist/exports/control-api.d.mts +101 -586
  67. package/dist/exports/control-api.d.mts.map +1 -1
  68. package/dist/exports/control-api.mjs +4 -6
  69. package/dist/exports/index.d.mts.map +1 -1
  70. package/dist/exports/index.mjs +28 -30
  71. package/dist/exports/index.mjs.map +1 -1
  72. package/dist/exports/init-output.d.mts +2 -4
  73. package/dist/exports/init-output.d.mts.map +1 -1
  74. package/dist/exports/init-output.mjs +2 -3
  75. package/dist/extension-pack-inputs-C7xgE-vv.mjs +74 -0
  76. package/dist/extension-pack-inputs-C7xgE-vv.mjs.map +1 -0
  77. package/dist/{framework-components-Cr--XBKy.mjs → framework-components-ChqVUxR-.mjs} +3 -4
  78. package/dist/{framework-components-Cr--XBKy.mjs.map → framework-components-ChqVUxR-.mjs.map} +1 -1
  79. package/dist/global-flags-Icqpxk23.d.mts +12 -0
  80. package/dist/global-flags-Icqpxk23.d.mts.map +1 -0
  81. package/dist/helpers-eqdN8tH6.mjs +25 -0
  82. package/dist/helpers-eqdN8tH6.mjs.map +1 -0
  83. package/dist/{init-C5220SY9.mjs → init-DETSgw3h.mjs} +40 -49
  84. package/dist/init-DETSgw3h.mjs.map +1 -0
  85. package/dist/{inspect-live-schema-yrHAvG71.mjs → inspect-live-schema-CWYxGKlb.mjs} +10 -11
  86. package/dist/inspect-live-schema-CWYxGKlb.mjs.map +1 -0
  87. package/dist/migration-cli.d.mts +41 -12
  88. package/dist/migration-cli.d.mts.map +1 -1
  89. package/dist/migration-cli.mjs +309 -86
  90. package/dist/migration-cli.mjs.map +1 -1
  91. package/dist/{migration-command-scaffold-B3B09et6.mjs → migration-command-scaffold-B5dORFEv.mjs} +8 -9
  92. package/dist/migration-command-scaffold-B5dORFEv.mjs.map +1 -0
  93. package/dist/migration-plan-C6lVaHsO.mjs +554 -0
  94. package/dist/migration-plan-C6lVaHsO.mjs.map +1 -0
  95. package/dist/{migration-status-DUMiH8_G.mjs → migration-status-CZ-D5k7k.mjs} +272 -65
  96. package/dist/migration-status-CZ-D5k7k.mjs.map +1 -0
  97. package/dist/migrations-D_UJnpuW.mjs +216 -0
  98. package/dist/migrations-D_UJnpuW.mjs.map +1 -0
  99. package/dist/{output-BpcQrnnq.mjs → output-B16Kefzx.mjs} +9 -3
  100. package/dist/output-B16Kefzx.mjs.map +1 -0
  101. package/dist/{progress-adapter-DvQWB1nK.mjs → progress-adapter-DFfvZcYL.mjs} +2 -2
  102. package/dist/{progress-adapter-DvQWB1nK.mjs.map → progress-adapter-DFfvZcYL.mjs.map} +1 -1
  103. package/dist/result-handler-rmPVKIP2.mjs +25 -0
  104. package/dist/result-handler-rmPVKIP2.mjs.map +1 -0
  105. package/dist/rolldown-runtime-twds-ZHy.mjs +14 -0
  106. package/dist/{terminal-ui-C3ZLwQxK.mjs → terminal-ui-C_hFNbAn.mjs} +4 -28
  107. package/dist/terminal-ui-C_hFNbAn.mjs.map +1 -0
  108. package/dist/types-D7x-IFLO.d.mts +858 -0
  109. package/dist/types-D7x-IFLO.d.mts.map +1 -0
  110. package/dist/{verify-Bkycc-Tf.mjs → verify-CiwNWM9N.mjs} +3 -4
  111. package/dist/verify-CiwNWM9N.mjs.map +1 -0
  112. package/package.json +19 -17
  113. package/dist/cli-errors-BFYgBH3L.d.mts +0 -4
  114. package/dist/cli-errors-Cd79vmTH.mjs +0 -5
  115. package/dist/client-CrsnY58k.mjs +0 -997
  116. package/dist/client-CrsnY58k.mjs.map +0 -1
  117. package/dist/commands/db-verify.mjs.map +0 -1
  118. package/dist/commands/migration-plan.mjs.map +0 -1
  119. package/dist/config-loader-C25b63rJ.mjs.map +0 -1
  120. package/dist/contract-emit--feXyNd7.mjs +0 -4
  121. package/dist/contract-emit-NJ01hiiv.mjs +0 -195
  122. package/dist/contract-emit-NJ01hiiv.mjs.map +0 -1
  123. package/dist/contract-emit-V5SSitUT.mjs +0 -122
  124. package/dist/contract-emit-V5SSitUT.mjs.map +0 -1
  125. package/dist/contract-enrichment-CAOELa-H.mjs.map +0 -1
  126. package/dist/contract-infer-D9cC3rJm.mjs.map +0 -1
  127. package/dist/extract-operation-statements-DsFfxXVZ.mjs +0 -13
  128. package/dist/extract-operation-statements-DsFfxXVZ.mjs.map +0 -1
  129. package/dist/extract-sql-ddl-D9UbZDyz.mjs +0 -26
  130. package/dist/extract-sql-ddl-D9UbZDyz.mjs.map +0 -1
  131. package/dist/init-C5220SY9.mjs.map +0 -1
  132. package/dist/inspect-live-schema-yrHAvG71.mjs.map +0 -1
  133. package/dist/migration-command-scaffold-B3B09et6.mjs.map +0 -1
  134. package/dist/migration-status-DUMiH8_G.mjs.map +0 -1
  135. package/dist/migrations-Bo5WtTla.mjs +0 -153
  136. package/dist/migrations-Bo5WtTla.mjs.map +0 -1
  137. package/dist/output-BpcQrnnq.mjs.map +0 -1
  138. package/dist/result-handler-Ba3zWQsI.mjs.map +0 -1
  139. package/dist/terminal-ui-C3ZLwQxK.mjs.map +0 -1
  140. package/dist/validate-contract-deps-B_Cs29TL.mjs +0 -37
  141. package/dist/validate-contract-deps-B_Cs29TL.mjs.map +0 -1
  142. package/dist/verify-Bkycc-Tf.mjs.map +0 -1
@@ -1,16 +1,14 @@
1
- import { t as CliStructuredError } from "./cli-errors-Cd79vmTH.mjs";
2
- import { i as formatErrorOutput, r as formatErrorJson, t as TerminalUI } from "./terminal-ui-C3ZLwQxK.mjs";
3
- import { a as INIT_EXIT_PRECONDITION, i as INIT_EXIT_OK, n as INIT_EXIT_INSTALL_FAILED, o as INIT_EXIT_USER_ABORTED, r as INIT_EXIT_INTERNAL_ERROR, t as INIT_EXIT_EMIT_FAILED } from "./cli.mjs";
4
- import { i as renderInitOutro, n as buildNextSteps, r as formatInitJson, t as InitOutputSchema } from "./output-BpcQrnnq.mjs";
1
+ import { t as CliStructuredError } from "./cli-errors-D3_sMh2K.mjs";
2
+ import { i as formatErrorOutput, r as formatErrorJson, t as TerminalUI } from "./terminal-ui-C_hFNbAn.mjs";
3
+ import { i as renderInitOutro, n as buildNextSteps, r as formatInitJson, t as InitOutputSchema } from "./output-B16Kefzx.mjs";
5
4
  import { createRequire } from "node:module";
6
- import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
7
5
  import { dirname, extname, isAbsolute, join, normalize } from "pathe";
8
6
  import * as clack from "@clack/prompts";
7
+ import { existsSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } from "node:fs";
9
8
  import { execFile } from "node:child_process";
10
9
  import { promisify } from "node:util";
11
10
  import { detect } from "package-manager-detector/detect";
12
11
  import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
13
-
14
12
  //#region src/commands/init/detect-package-manager.ts
15
13
  const KNOWN = new Set([
16
14
  "pnpm",
@@ -48,7 +46,6 @@ function formatAddDevArgs(pm, packages) {
48
46
  ...packages
49
47
  ];
50
48
  }
51
-
52
49
  //#endregion
53
50
  //#region src/commands/init/detect-pnpm-catalog.ts
54
51
  /**
@@ -142,7 +139,6 @@ function stripQuotes(value) {
142
139
  }
143
140
  return value;
144
141
  }
145
-
146
142
  //#endregion
147
143
  //#region src/commands/init/errors.ts
148
144
  /**
@@ -361,7 +357,6 @@ function errorInitEmitFailed(options) {
361
357
  }
362
358
  });
363
359
  }
364
-
365
360
  //#endregion
366
361
  //#region src/commands/init/hygiene-gitattributes.ts
367
362
  /**
@@ -432,7 +427,6 @@ function mergeGitattributes(existing, required) {
432
427
  if (missing.length === 0) return null;
433
428
  return `${existing}${existing.length === 0 || existing.endsWith("\n") ? "" : "\n"}${missing.join("\n")}\n`;
434
429
  }
435
-
436
430
  //#endregion
437
431
  //#region src/commands/init/hygiene-gitignore.ts
438
432
  /**
@@ -473,7 +467,6 @@ function mergeGitignore(existing) {
473
467
  if (missing.length === 0) return null;
474
468
  return `${existing}${existing.length === 0 || existing.endsWith("\n") ? "" : "\n"}${missing.join("\n")}\n`;
475
469
  }
476
-
477
470
  //#endregion
478
471
  //#region src/commands/init/hygiene-package-scripts.ts
479
472
  const REQUIRED_SCRIPTS = [{
@@ -526,7 +519,6 @@ function mergePackageScripts(existing, required = REQUIRED_SCRIPTS) {
526
519
  warnings
527
520
  };
528
521
  }
529
-
530
522
  //#endregion
531
523
  //#region src/commands/init/templates/code-templates.ts
532
524
  function targetPackageName(target) {
@@ -577,12 +569,12 @@ model User {
577
569
  }
578
570
  function schemaSampleTsPostgres() {
579
571
  return `\`\`\`typescript
580
- import sqlFamily from '@prisma-next/family-sql/pack';
581
- import { defineContract } from '@prisma-next/sql-contract-ts/contract-builder';
582
- import postgresPack from '@prisma-next/target-postgres/pack';
572
+ import { defineContract } from '@prisma-next/postgres/contract-builder';
573
+ import sqlFamily from '@prisma-next/postgres/family';
574
+ import postgresTarget from '@prisma-next/postgres/target';
583
575
 
584
576
  export const contract = defineContract(
585
- { family: sqlFamily, target: postgresPack },
577
+ { family: sqlFamily, target: postgresTarget },
586
578
  ({ field, model }) => ({
587
579
  models: {
588
580
  User: model('User', {
@@ -599,9 +591,9 @@ export const contract = defineContract(
599
591
  }
600
592
  function schemaSampleTsMongo() {
601
593
  return `\`\`\`typescript
602
- import mongoFamily from '@prisma-next/family-mongo/pack';
603
- import { defineContract } from '@prisma-next/mongo-contract-ts/contract-builder';
604
- import mongoTarget from '@prisma-next/target-mongo/pack';
594
+ import { defineContract } from '@prisma-next/mongo/contract-builder';
595
+ import mongoFamily from '@prisma-next/mongo/family';
596
+ import mongoTarget from '@prisma-next/mongo/target';
605
597
 
606
598
  export const contract = defineContract(
607
599
  { family: mongoFamily, target: mongoTarget },
@@ -621,12 +613,15 @@ export const contract = defineContract(
621
613
  \`\`\``;
622
614
  }
623
615
  function starterSchemaPslPostgres() {
624
- return `model User {
616
+ return `// use prisma-next
617
+
618
+ model User {
625
619
  id Int @id @default(autoincrement())
626
620
  email String @unique
627
621
  name String?
628
622
  posts Post[]
629
623
  createdAt DateTime @default(now())
624
+ updatedAt temporal.updatedAt()
630
625
  }
631
626
 
632
627
  model Post {
@@ -636,11 +631,14 @@ model Post {
636
631
  author User @relation(fields: [authorId], references: [id])
637
632
  authorId Int
638
633
  createdAt DateTime @default(now())
634
+ updatedAt temporal.updatedAt()
639
635
  }
640
636
  `;
641
637
  }
642
638
  function starterSchemaPslMongo() {
643
- return `model User {
639
+ return `// use prisma-next
640
+
641
+ model User {
644
642
  id ObjectId @id @map("_id")
645
643
  email String @unique
646
644
  name String?
@@ -659,12 +657,12 @@ model Post {
659
657
  `;
660
658
  }
661
659
  function starterSchemaTsPostgres() {
662
- return `import sqlFamily from '@prisma-next/family-sql/pack';
663
- import { defineContract } from '@prisma-next/sql-contract-ts/contract-builder';
664
- import postgresPack from '@prisma-next/target-postgres/pack';
660
+ return `import { defineContract } from '@prisma-next/postgres/contract-builder';
661
+ import sqlFamily from '@prisma-next/postgres/family';
662
+ import postgresTarget from '@prisma-next/postgres/target';
665
663
 
666
664
  export const contract = defineContract(
667
- { family: sqlFamily, target: postgresPack },
665
+ { family: sqlFamily, target: postgresTarget },
668
666
  ({ field, model, rel }) => ({
669
667
  models: {
670
668
  User: model('User', {
@@ -672,7 +670,8 @@ export const contract = defineContract(
672
670
  id: field.id.uuidv7(),
673
671
  email: field.text().unique(),
674
672
  name: field.text().optional(),
675
- createdAt: field.createdAt(),
673
+ createdAt: field.temporal.createdAt(),
674
+ updatedAt: field.temporal.updatedAt(),
676
675
  },
677
676
  relations: {
678
677
  posts: rel.hasMany('Post', { by: 'authorId' }),
@@ -685,7 +684,8 @@ export const contract = defineContract(
685
684
  title: field.text(),
686
685
  content: field.text().optional(),
687
686
  authorId: field.uuid(),
688
- createdAt: field.createdAt(),
687
+ createdAt: field.temporal.createdAt(),
688
+ updatedAt: field.temporal.updatedAt(),
689
689
  },
690
690
  relations: {
691
691
  author: rel.belongsTo('User', { from: 'authorId', to: 'id' }),
@@ -697,9 +697,9 @@ export const contract = defineContract(
697
697
  `;
698
698
  }
699
699
  function starterSchemaTsMongo() {
700
- return `import mongoFamily from '@prisma-next/family-mongo/pack';
701
- import { defineContract } from '@prisma-next/mongo-contract-ts/contract-builder';
702
- import mongoTarget from '@prisma-next/target-mongo/pack';
700
+ return `import { defineContract } from '@prisma-next/mongo/contract-builder';
701
+ import mongoFamily from '@prisma-next/mongo/family';
702
+ import mongoTarget from '@prisma-next/mongo/target';
703
703
 
704
704
  export const contract = defineContract(
705
705
  { family: mongoFamily, target: mongoTarget },
@@ -763,7 +763,6 @@ export const db = mongo<Contract>({
763
763
  });
764
764
  `;
765
765
  }
766
-
767
766
  //#endregion
768
767
  //#region src/commands/init/inputs.ts
769
768
  const TARGET_ALIASES = new Map([
@@ -1002,7 +1001,6 @@ async function promptSchemaPath(authoring) {
1002
1001
  if (clack.isCancel(result)) throw errorInitUserAborted();
1003
1002
  return validateSchemaPath(result, authoring);
1004
1003
  }
1005
-
1006
1004
  //#endregion
1007
1005
  //#region src/commands/init/probe-db.ts
1008
1006
  /**
@@ -1170,7 +1168,6 @@ function requirePeer(moduleId, baseDir, overrides) {
1170
1168
  throw new DriverMissingError(`\`${moduleId}\` is not installed in this project (resolved from ${baseDir}; cause: ${causeMessage$1(err)})`);
1171
1169
  }
1172
1170
  }
1173
-
1174
1171
  //#endregion
1175
1172
  //#region src/commands/init/reinit-cleanup.ts
1176
1173
  /**
@@ -1245,7 +1242,6 @@ function removeDependency(existing, depName) {
1245
1242
  const trailingNewline = existing.endsWith("\n") ? "\n" : "";
1246
1243
  return `${JSON.stringify(parsed, null, 2)}${trailingNewline}`;
1247
1244
  }
1248
-
1249
1245
  //#endregion
1250
1246
  //#region src/commands/init/templates/render.ts
1251
1247
  function renderTemplate(templateFile, variableNames, vars) {
@@ -1257,7 +1253,6 @@ function renderTemplate(templateFile, variableNames, vars) {
1257
1253
  }
1258
1254
  return result;
1259
1255
  }
1260
-
1261
1256
  //#endregion
1262
1257
  //#region src/commands/init/templates/agent-skill.ts
1263
1258
  const variables$1 = [
@@ -1288,7 +1283,6 @@ function agentSkillMd(target, authoring, schemaPath, pkgRun) {
1288
1283
  };
1289
1284
  return renderTemplate(`agent-skill-${target}.md`, variables$1, vars);
1290
1285
  }
1291
-
1292
1286
  //#endregion
1293
1287
  //#region src/commands/init/templates/env.ts
1294
1288
  /**
@@ -1360,7 +1354,6 @@ function envExampleContent(target) {
1360
1354
  function envFileContent(target) {
1361
1355
  return envPlaceholderBody(target);
1362
1356
  }
1363
-
1364
1357
  //#endregion
1365
1358
  //#region src/commands/init/templates/quick-reference.ts
1366
1359
  const variables = [
@@ -1402,7 +1395,6 @@ function requirementsBlock(target) {
1402
1395
  "- The CLI never connects to your database without explicit consent. Pass `--probe-db` to `prisma-next init` if you want `init` to verify the server version itself."
1403
1396
  ].join("\n");
1404
1397
  }
1405
-
1406
1398
  //#endregion
1407
1399
  //#region src/commands/init/templates/tsconfig.ts
1408
1400
  /**
@@ -1545,7 +1537,6 @@ function mergeTypesArray(existing) {
1545
1537
  for (const required of REQUIRED_COMPILER_OPTIONS_TYPES) if (!result.includes(required)) result.push(required);
1546
1538
  return result;
1547
1539
  }
1548
-
1549
1540
  //#endregion
1550
1541
  //#region src/commands/init/init.ts
1551
1542
  /**
@@ -1782,7 +1773,7 @@ async function runInit(baseDir, runOptions) {
1782
1773
  renderInitOutro(ui, output, flags);
1783
1774
  if (!flags.quiet) clack.outro("Done. Open prisma-next.md to get started.", { output: process.stderr });
1784
1775
  }
1785
- return INIT_EXIT_OK;
1776
+ return 0;
1786
1777
  }
1787
1778
  /**
1788
1779
  * Renders a structured CLI error to the right channel and returns the exit
@@ -1822,12 +1813,12 @@ function exitCodeForError(error) {
1822
1813
  case "5005":
1823
1814
  case "5010":
1824
1815
  case "5011":
1825
- case "5012": return INIT_EXIT_PRECONDITION;
1826
- case "5006": return INIT_EXIT_USER_ABORTED;
1827
- case "5007": return INIT_EXIT_INSTALL_FAILED;
1828
- case "5008": return INIT_EXIT_EMIT_FAILED;
1829
- case "5009": return INIT_EXIT_INTERNAL_ERROR;
1830
- default: return INIT_EXIT_INTERNAL_ERROR;
1816
+ case "5012": return 2;
1817
+ case "5006": return 3;
1818
+ case "5007": return 4;
1819
+ case "5008": return 5;
1820
+ case "5009": return 1;
1821
+ default: return 1;
1831
1822
  }
1832
1823
  }
1833
1824
  /**
@@ -2040,7 +2031,7 @@ async function runEmit(ctx) {
2040
2031
  const spinner = ctx.ui.spinner();
2041
2032
  spinner.start("Emitting contract...");
2042
2033
  try {
2043
- const { executeContractEmit } = await import("./contract-emit--feXyNd7.mjs");
2034
+ const { executeContractEmit } = await import("./contract-emit-B77TsJqf.mjs").then((n) => n.t);
2044
2035
  await executeContractEmit({ configPath: join(ctx.baseDir, "prisma-next.config.ts") });
2045
2036
  spinner.stop("Contract emitted");
2046
2037
  } catch (err) {
@@ -2056,7 +2047,7 @@ function causeMessage(err) {
2056
2047
  if (err instanceof Error) return err.message;
2057
2048
  return String(err);
2058
2049
  }
2059
-
2060
2050
  //#endregion
2061
2051
  export { runInit };
2062
- //# sourceMappingURL=init-C5220SY9.mjs.map
2052
+
2053
+ //# sourceMappingURL=init-DETSgw3h.mjs.map