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

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-GZGPC4YJ.js";
18
+ } from "./chunk-YY3GMERO.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.202510211449";
347
+ var version = "0.0.0-dev.202510211459";
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-GZGPC4YJ.js";
31
+ } from "./chunk-YY3GMERO.js";
32
32
  import {
33
33
  __commonJS,
34
34
  __require,
@@ -3231,8 +3231,7 @@ var defaultEnv = async (url2, debug = false, comments = true) => {
3231
3231
  }
3232
3232
  let env = comments ? `# Environment variables declared in this file are NOT automatically loaded by Prisma.
3233
3233
  # Please add \`import "dotenv/config";\` to your \`prisma.config.ts\` file, or use the Prisma CLI with Bun
3234
- # to load environment variables from .env files:
3235
- # https://www.prisma.io/docs/orm/reference/prisma-config-reference#using-environment-variables.
3234
+ # to load environment variables from .env files: https://pris.ly/prisma-config-env-vars.
3236
3235
 
3237
3236
  # Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
3238
3237
  # See the documentation for all the connection string options: https://pris.ly/d/connection-strings
@@ -3288,6 +3287,9 @@ var defaultGitIgnore = () => {
3288
3287
  };
3289
3288
  var defaultGeneratorProvider = "prisma-client";
3290
3289
  var defaultPreviewFeatures = [];
3290
+ function canonicalizePath(configPath) {
3291
+ return JSON.stringify(configPath.replaceAll(path2.sep, "/"));
3292
+ }
3291
3293
  var defaultConfig = (props) => {
3292
3294
  const { prismaFolder } = props;
3293
3295
  const schemaPath = path2.relative(process.cwd(), path2.join(prismaFolder, "schema.prisma"));
@@ -3295,9 +3297,9 @@ var defaultConfig = (props) => {
3295
3297
  return `import { defineConfig, env } from "prisma/config";
3296
3298
 
3297
3299
  export default defineConfig({
3298
- schema: ${JSON.stringify(schemaPath)},
3300
+ schema: ${canonicalizePath(schemaPath)},
3299
3301
  migrations: {
3300
- path: ${JSON.stringify(migrationsPath)},
3302
+ path: ${canonicalizePath(migrationsPath)},
3301
3303
  },
3302
3304
  engine: "classic",
3303
3305
  datasource: {
@@ -3431,7 +3433,7 @@ var Init = class _Init {
3431
3433
  let generatedSchema;
3432
3434
  let generatedName;
3433
3435
  if (isPpgCommand) {
3434
- const PlatformCommands = await import("./_-Y2BO25HZ.js");
3436
+ const PlatformCommands = await import("./_-POYSAC5Q.js");
3435
3437
  const credentials = await credentialsFile.load();
3436
3438
  if (internals.isError(credentials))
3437
3439
  throw credentials;
@@ -3674,7 +3676,8 @@ var Init = class _Init {
3674
3676
  )} with scalable connection pooling, global caching, and a managed serverless Postgres database. Read: https://pris.ly/cli/beyond-orm`
3675
3677
  );
3676
3678
  if (!isBun) {
3677
- warnings.push(`Environment variables declared in the \`.env\` file are NOT automatically loaded by Prisma.`);
3679
+ warnings.push(`Environment variables declared in the \`.env\` file are NOT automatically loaded by Prisma.
3680
+ See: https://pris.ly/prisma-config-env-vars.`);
3678
3681
  }
3679
3682
  const defaultOutput = `
3680
3683
  \u2714 Your Prisma schema was created at ${green("prisma/schema.prisma")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.0-dev.202510211449",
3
+ "version": "0.0.0-dev.202510211459",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,