@prisma/cli-init 0.0.0-dev.202508041346 → 0.0.0-dev.202508041646
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.202508041646";
|
|
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-KQJHOVDE.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
@@ -3210,10 +3210,10 @@ model User {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
return schema;
|
|
3212
3212
|
};
|
|
3213
|
-
var defaultEnv = async (url2, comments = true) => {
|
|
3213
|
+
var defaultEnv = async (url2, debug = false, comments = true) => {
|
|
3214
3214
|
if (url2 === void 0) {
|
|
3215
3215
|
let created = false;
|
|
3216
|
-
const state = await ServerState.fromServerDump() || (created = true, await ServerState.createExclusively({ persistenceMode: "stateful" }));
|
|
3216
|
+
const state = await ServerState.fromServerDump({ debug }) || (created = true, await ServerState.createExclusively({ persistenceMode: "stateful" }));
|
|
3217
3217
|
if (created) {
|
|
3218
3218
|
await state.close();
|
|
3219
3219
|
}
|
|
@@ -3345,7 +3345,8 @@ var Init = class _Init {
|
|
|
3345
3345
|
"--name": String,
|
|
3346
3346
|
"--non-interactive": Boolean,
|
|
3347
3347
|
"--prompt": String,
|
|
3348
|
-
"--vibe": String
|
|
3348
|
+
"--vibe": String,
|
|
3349
|
+
"--debug": Boolean
|
|
3349
3350
|
});
|
|
3350
3351
|
if (internals.isError(args) || args["--help"]) {
|
|
3351
3352
|
return this.help();
|
|
@@ -3406,7 +3407,7 @@ var Init = class _Init {
|
|
|
3406
3407
|
let generatedSchema;
|
|
3407
3408
|
let generatedName;
|
|
3408
3409
|
if (isPpgCommand) {
|
|
3409
|
-
const PlatformCommands = await import("./_-
|
|
3410
|
+
const PlatformCommands = await import("./_-VJBUPT3I.js");
|
|
3410
3411
|
const credentials = await credentialsFile.load();
|
|
3411
3412
|
if (internals.isError(credentials))
|
|
3412
3413
|
throw credentials;
|
|
@@ -3561,7 +3562,7 @@ var Init = class _Init {
|
|
|
3561
3562
|
const warnings = [];
|
|
3562
3563
|
const envPath = path2.join(outputDir, ".env");
|
|
3563
3564
|
if (!fs2.existsSync(envPath)) {
|
|
3564
|
-
fs2.writeFileSync(envPath, await defaultEnv(databaseUrl));
|
|
3565
|
+
fs2.writeFileSync(envPath, await defaultEnv(databaseUrl, args["--debug"]));
|
|
3565
3566
|
} else {
|
|
3566
3567
|
const envFile = fs2.readFileSync(envPath, { encoding: "utf8" });
|
|
3567
3568
|
const config = dotenv.parse(envFile);
|
|
@@ -3577,7 +3578,7 @@ var Init = class _Init {
|
|
|
3577
3578
|
`
|
|
3578
3579
|
|
|
3579
3580
|
# This was inserted by \`prisma init\`:
|
|
3580
|
-
` + await defaultEnv(databaseUrl)
|
|
3581
|
+
` + await defaultEnv(databaseUrl, args["--debug"])
|
|
3581
3582
|
);
|
|
3582
3583
|
}
|
|
3583
3584
|
}
|