@prisma/cli-init 0.5.0 → 0.5.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.
@@ -15,7 +15,7 @@ import {
15
15
  platformParameters,
16
16
  poll,
17
17
  printPpgInitOutput
18
- } from "./chunk-OCHZ4DEX.js";
18
+ } from "./chunk-C65YHZ4S.js";
19
19
  import "./chunk-YX4UTTNJ.js";
20
20
  export {
21
21
  __exports as Accelerate,
@@ -344,7 +344,7 @@ import internals5 from "@prisma/internals";
344
344
  import * as Checkpoint from "checkpoint-client";
345
345
 
346
346
  // package.json
347
- var version = "0.5.0";
347
+ var version = "0.5.1";
348
348
 
349
349
  // src/platform/_lib/userAgent.ts
350
350
  var debug = Debug("prisma:cli:platform:_lib:userAgent");
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  printPpgInitOutput,
29
29
  requestOrThrow,
30
30
  successMessage
31
- } from "./chunk-OCHZ4DEX.js";
31
+ } from "./chunk-C65YHZ4S.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -3180,6 +3180,7 @@ ${previewFeatures.length > 0 ? ` previewFeatures = [${previewFeatures.map((feat
3180
3180
 
3181
3181
  datasource db {
3182
3182
  provider = "${datasourceProvider}"
3183
+ url = env("DATABASE_URL")
3183
3184
  }
3184
3185
  `;
3185
3186
  if (withModel) {
@@ -3424,6 +3425,9 @@ var Init = class _Init {
3424
3425
  const previewFeatures = args["--preview-feature"];
3425
3426
  const output = args["--output"];
3426
3427
  const isPpgCommand = args["--db"] || datasourceProvider === internals.PRISMA_POSTGRES_PROVIDER || args["--prompt"] || args["--vibe"];
3428
+ if (args["--debug"]) {
3429
+ console.log(`[isBun]`, isBun);
3430
+ }
3427
3431
  let prismaPostgresDatabaseUrl;
3428
3432
  let workspaceId = ``;
3429
3433
  let projectId = ``;
@@ -3433,7 +3437,7 @@ var Init = class _Init {
3433
3437
  let generatedSchema;
3434
3438
  let generatedName;
3435
3439
  if (isPpgCommand) {
3436
- const PlatformCommands = await import("./_-YBFA2SJO.js");
3440
+ const PlatformCommands = await import("./_-2XY5LH7K.js");
3437
3441
  const credentials = await credentialsFile.load();
3438
3442
  if (internals.isError(credentials))
3439
3443
  throw credentials;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,