@prisma/cli-init 0.0.0-dev.202505201332 → 0.0.0-dev.202505201345
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.
|
@@ -345,7 +345,7 @@ import internals5 from "@prisma/internals";
|
|
|
345
345
|
import * as Checkpoint from "checkpoint-client";
|
|
346
346
|
|
|
347
347
|
// package.json
|
|
348
|
-
var version = "0.0.0-dev.
|
|
348
|
+
var version = "0.0.0-dev.202505201345";
|
|
349
349
|
|
|
350
350
|
// src/platform/_lib/userAgent.ts
|
|
351
351
|
var debug = Debug("prisma:cli:platform:_lib:userAgent");
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
printPpgInitOutput,
|
|
5
5
|
requestOrThrow,
|
|
6
6
|
successMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TXRW46QX.js";
|
|
8
8
|
|
|
9
9
|
// src/Init.ts
|
|
10
10
|
import { confirm, input, select } from "@inquirer/prompts";
|
|
@@ -342,7 +342,7 @@ var Init = class _Init {
|
|
|
342
342
|
let generatedSchema;
|
|
343
343
|
let generatedName;
|
|
344
344
|
if (isPpgCommand) {
|
|
345
|
-
const PlatformCommands = await import("./_-
|
|
345
|
+
const PlatformCommands = await import("./_-YTPPO7SP.js");
|
|
346
346
|
const credentials = await credentialsFile.load();
|
|
347
347
|
if (internals.isError(credentials))
|
|
348
348
|
throw credentials;
|
|
@@ -528,6 +528,14 @@ var Init = class _Init {
|
|
|
528
528
|
console.error("Failed to write .gitignore file, reason: ", e);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
|
+
const clientPathRelativeToOutputDir = path2.relative(outputDir, path2.resolve(prismaFolder, clientOutput));
|
|
532
|
+
try {
|
|
533
|
+
fs2.appendFileSync(gitignorePath, `
|
|
534
|
+
/${clientPathRelativeToOutputDir.replaceAll(path2.sep, "/")}
|
|
535
|
+
`);
|
|
536
|
+
} catch (e) {
|
|
537
|
+
console.error("Failed to append client path to .gitignore file, reason: ", e);
|
|
538
|
+
}
|
|
531
539
|
const steps = [];
|
|
532
540
|
if (datasourceProvider === "mongodb") {
|
|
533
541
|
steps.push(`Define models in the schema.prisma file.`);
|