@prisma/cli-init 0.0.0-dev.202510201723 → 0.0.0-dev.202510211253
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.
|
@@ -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.
|
|
347
|
+
var version = "0.0.0-dev.202510211253";
|
|
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-
|
|
31
|
+
} from "./chunk-3GAY7R7M.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
@@ -2645,7 +2645,7 @@ async function getApp(port, dbServer, serverState) {
|
|
|
2645
2645
|
const { debug } = serverState;
|
|
2646
2646
|
const [{ Hono }, { accelerateRoute }, { utilityRoute }] = await Promise.all([
|
|
2647
2647
|
import("hono/tiny"),
|
|
2648
|
-
import("./accelerate-
|
|
2648
|
+
import("./accelerate-66DB7ND6.js"),
|
|
2649
2649
|
import("./utility-W6LOZZIT.js")
|
|
2650
2650
|
]);
|
|
2651
2651
|
const app = new Hono();
|
|
@@ -3152,6 +3152,10 @@ function printError(text) {
|
|
|
3152
3152
|
}
|
|
3153
3153
|
|
|
3154
3154
|
// src/Init.ts
|
|
3155
|
+
var isBun = (
|
|
3156
|
+
// @ts-ignore
|
|
3157
|
+
!!globalThis.Bun || !!globalThis.process?.versions?.bun
|
|
3158
|
+
);
|
|
3155
3159
|
var defaultSchema = (props) => {
|
|
3156
3160
|
const {
|
|
3157
3161
|
datasourceProvider = "postgresql",
|
|
@@ -3226,7 +3230,7 @@ var defaultEnv = async (url2, debug = false, comments = true) => {
|
|
|
3226
3230
|
url2 = server.ppg.url;
|
|
3227
3231
|
}
|
|
3228
3232
|
let env = comments ? `# Environment variables declared in this file are NOT automatically loaded by Prisma.
|
|
3229
|
-
# Please
|
|
3233
|
+
# Please add \`import('dotenv/config');\` to your \`prisma.config.ts\` file, or use the Prisma CLI with Bun
|
|
3230
3234
|
# to load environment variables from .env files:
|
|
3231
3235
|
# https://www.prisma.io/docs/orm/reference/prisma-config-reference#using-environment-variables.
|
|
3232
3236
|
|
|
@@ -3427,7 +3431,7 @@ var Init = class _Init {
|
|
|
3427
3431
|
let generatedSchema;
|
|
3428
3432
|
let generatedName;
|
|
3429
3433
|
if (isPpgCommand) {
|
|
3430
|
-
const PlatformCommands = await import("./_-
|
|
3434
|
+
const PlatformCommands = await import("./_-C2VLETHL.js");
|
|
3431
3435
|
const credentials = await credentialsFile.load();
|
|
3432
3436
|
if (internals.isError(credentials))
|
|
3433
3437
|
throw credentials;
|
|
@@ -3631,6 +3635,9 @@ var Init = class _Init {
|
|
|
3631
3635
|
console.error("Failed to append client path to .gitignore file, reason: ", e);
|
|
3632
3636
|
}
|
|
3633
3637
|
const steps = [];
|
|
3638
|
+
if (!isBun) {
|
|
3639
|
+
steps.push(`Add \`import('dotenv/config');\` to your \`prisma.config.ts\` file to load environment variables from \`.env\`.`);
|
|
3640
|
+
}
|
|
3634
3641
|
const isPrismaDev = !args["--url"] && (datasourceProvider === "postgres" || datasourceProvider === "postgresql");
|
|
3635
3642
|
if (isPrismaDev) {
|
|
3636
3643
|
steps.push(
|
|
@@ -3666,6 +3673,9 @@ var Init = class _Init {
|
|
|
3666
3673
|
"ORM"
|
|
3667
3674
|
)} with scalable connection pooling, global caching, and a managed serverless Postgres database. Read: https://pris.ly/cli/beyond-orm`
|
|
3668
3675
|
);
|
|
3676
|
+
if (!isBun) {
|
|
3677
|
+
warnings.push(`Environment variables declared in the \`.env\` file are NOT automatically loaded by Prisma.`);
|
|
3678
|
+
}
|
|
3669
3679
|
const defaultOutput = `
|
|
3670
3680
|
\u2714 Your Prisma schema was created at ${green("prisma/schema.prisma")}
|
|
3671
3681
|
\u2714 Your Prisma config was created at ${green("prisma.config.ts")}
|