@prisma/cli-init 0.0.0-dev.202510211457 → 0.0.0-dev.202510211522
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.202510211522";
|
|
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-AZOXGRPQ.js";
|
|
32
32
|
import {
|
|
33
33
|
__commonJS,
|
|
34
34
|
__require,
|
|
@@ -3287,6 +3287,9 @@ var defaultGitIgnore = () => {
|
|
|
3287
3287
|
};
|
|
3288
3288
|
var defaultGeneratorProvider = "prisma-client";
|
|
3289
3289
|
var defaultPreviewFeatures = [];
|
|
3290
|
+
function normalizePath(configPath) {
|
|
3291
|
+
return JSON.stringify(configPath.replaceAll(path2.sep, "/"));
|
|
3292
|
+
}
|
|
3290
3293
|
var defaultConfig = (props) => {
|
|
3291
3294
|
const { prismaFolder } = props;
|
|
3292
3295
|
const schemaPath = path2.relative(process.cwd(), path2.join(prismaFolder, "schema.prisma"));
|
|
@@ -3294,9 +3297,9 @@ var defaultConfig = (props) => {
|
|
|
3294
3297
|
return `import { defineConfig, env } from "prisma/config";
|
|
3295
3298
|
|
|
3296
3299
|
export default defineConfig({
|
|
3297
|
-
schema: ${
|
|
3300
|
+
schema: ${normalizePath(schemaPath)},
|
|
3298
3301
|
migrations: {
|
|
3299
|
-
path: ${
|
|
3302
|
+
path: ${normalizePath(migrationsPath)},
|
|
3300
3303
|
},
|
|
3301
3304
|
engine: "classic",
|
|
3302
3305
|
datasource: {
|
|
@@ -3430,7 +3433,7 @@ var Init = class _Init {
|
|
|
3430
3433
|
let generatedSchema;
|
|
3431
3434
|
let generatedName;
|
|
3432
3435
|
if (isPpgCommand) {
|
|
3433
|
-
const PlatformCommands = await import("./_-
|
|
3436
|
+
const PlatformCommands = await import("./_-LO6HQL7V.js");
|
|
3434
3437
|
const credentials = await credentialsFile.load();
|
|
3435
3438
|
if (internals.isError(credentials))
|
|
3436
3439
|
throw credentials;
|