@prisma/cli-init 0.0.0-dev.202510211253 → 0.0.0-dev.202510211449

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-3GAY7R7M.js";
18
+ } from "./chunk-GZGPC4YJ.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.0.0-dev.202510211253";
347
+ var version = "0.0.0-dev.202510211449";
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-3GAY7R7M.js";
31
+ } from "./chunk-GZGPC4YJ.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -3230,7 +3230,7 @@ var defaultEnv = async (url2, debug = false, comments = true) => {
3230
3230
  url2 = server.ppg.url;
3231
3231
  }
3232
3232
  let env = comments ? `# Environment variables declared in this file are NOT automatically loaded by Prisma.
3233
- # Please add \`import('dotenv/config');\` to your \`prisma.config.ts\` file, or use the Prisma CLI with Bun
3233
+ # Please add \`import "dotenv/config";\` to your \`prisma.config.ts\` file, or use the Prisma CLI with Bun
3234
3234
  # to load environment variables from .env files:
3235
3235
  # https://www.prisma.io/docs/orm/reference/prisma-config-reference#using-environment-variables.
3236
3236
 
@@ -3292,16 +3292,16 @@ var defaultConfig = (props) => {
3292
3292
  const { prismaFolder } = props;
3293
3293
  const schemaPath = path2.relative(process.cwd(), path2.join(prismaFolder, "schema.prisma"));
3294
3294
  const migrationsPath = path2.relative(process.cwd(), path2.join(prismaFolder, "migrations"));
3295
- return `import { defineConfig, env } from 'prisma/config';
3295
+ return `import { defineConfig, env } from "prisma/config";
3296
3296
 
3297
3297
  export default defineConfig({
3298
- schema: '${schemaPath}',
3298
+ schema: ${JSON.stringify(schemaPath)},
3299
3299
  migrations: {
3300
- path: '${migrationsPath}',
3300
+ path: ${JSON.stringify(migrationsPath)},
3301
3301
  },
3302
- engine: 'classic',
3302
+ engine: "classic",
3303
3303
  datasource: {
3304
- url: env('DATABASE_URL'),
3304
+ url: env("DATABASE_URL"),
3305
3305
  },
3306
3306
  });
3307
3307
  `;
@@ -3431,7 +3431,7 @@ var Init = class _Init {
3431
3431
  let generatedSchema;
3432
3432
  let generatedName;
3433
3433
  if (isPpgCommand) {
3434
- const PlatformCommands = await import("./_-C2VLETHL.js");
3434
+ const PlatformCommands = await import("./_-Y2BO25HZ.js");
3435
3435
  const credentials = await credentialsFile.load();
3436
3436
  if (internals.isError(credentials))
3437
3437
  throw credentials;
@@ -3636,7 +3636,7 @@ var Init = class _Init {
3636
3636
  }
3637
3637
  const steps = [];
3638
3638
  if (!isBun) {
3639
- steps.push(`Add \`import('dotenv/config');\` to your \`prisma.config.ts\` file to load environment variables from \`.env\`.`);
3639
+ steps.push(`Install \`dotenv\`, and add \`import "dotenv/config";\` to your \`prisma.config.ts\` file to load environment variables from \`.env\`.`);
3640
3640
  }
3641
3641
  const isPrismaDev = !args["--url"] && (datasourceProvider === "postgres" || datasourceProvider === "postgresql");
3642
3642
  if (isPrismaDev) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.0-dev.202510211253",
3
+ "version": "0.0.0-dev.202510211449",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,