prisma-laravel-migrate 3.1.14 → 3.1.15
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.
- package/dist/cli/cli.js +3 -2
- package/dist/cli/migrator.index.js +1 -1
- package/dist/cli/models.index.js +2 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/cli/cli.js
CHANGED
|
@@ -1195,7 +1195,7 @@ async function loadSharedConfig(schemaDir) {
|
|
|
1195
1195
|
async function generateLaravelSchema(options) {
|
|
1196
1196
|
const { dmmf, generator } = options;
|
|
1197
1197
|
const raw = generator.config ?? {};
|
|
1198
|
-
const schemaDir = path13.dirname(options.schemaPath);
|
|
1198
|
+
const schemaDir = path13.dirname(generator.sourceFilePath ?? path13.resolve(options.schemaPath));
|
|
1199
1199
|
const shared = await loadSharedConfig(schemaDir);
|
|
1200
1200
|
let groups = [];
|
|
1201
1201
|
const loadGroups = async (p) => {
|
|
@@ -2256,8 +2256,9 @@ function buildModelContent(model) {
|
|
|
2256
2256
|
// src/generator/modeler/index.ts
|
|
2257
2257
|
async function generateLaravelModels(options) {
|
|
2258
2258
|
const { dmmf, generator } = options;
|
|
2259
|
+
generator.sourceFilePath;
|
|
2259
2260
|
const raw = generator.config ?? {};
|
|
2260
|
-
const schemaDir = path13.dirname(options.schemaPath);
|
|
2261
|
+
const schemaDir = path13.dirname(path13.resolve(options.schemaPath));
|
|
2261
2262
|
const shared = await loadSharedConfig(schemaDir);
|
|
2262
2263
|
let groups = [];
|
|
2263
2264
|
if (raw["groups"]) {
|
|
@@ -1164,7 +1164,7 @@ async function loadSharedConfig(schemaDir) {
|
|
|
1164
1164
|
async function generateLaravelSchema(options) {
|
|
1165
1165
|
const { dmmf, generator } = options;
|
|
1166
1166
|
const raw = generator.config ?? {};
|
|
1167
|
-
const schemaDir = path7.dirname(options.schemaPath);
|
|
1167
|
+
const schemaDir = path7.dirname(generator.sourceFilePath ?? path7.resolve(options.schemaPath));
|
|
1168
1168
|
const shared = await loadSharedConfig(schemaDir);
|
|
1169
1169
|
let groups = [];
|
|
1170
1170
|
const loadGroups = async (p) => {
|
package/dist/cli/models.index.js
CHANGED
|
@@ -1262,8 +1262,9 @@ function buildModelContent(model) {
|
|
|
1262
1262
|
// src/generator/modeler/index.ts
|
|
1263
1263
|
async function generateLaravelModels(options) {
|
|
1264
1264
|
const { dmmf, generator } = options;
|
|
1265
|
+
generator.sourceFilePath;
|
|
1265
1266
|
const raw = generator.config ?? {};
|
|
1266
|
-
const schemaDir = path7.dirname(options.schemaPath);
|
|
1267
|
+
const schemaDir = path7.dirname(path7.resolve(options.schemaPath));
|
|
1267
1268
|
const shared = await loadSharedConfig(schemaDir);
|
|
1268
1269
|
let groups = [];
|
|
1269
1270
|
if (raw["groups"]) {
|
package/dist/index.js
CHANGED
|
@@ -1317,7 +1317,7 @@ async function loadSharedConfig(schemaDir) {
|
|
|
1317
1317
|
async function generateLaravelSchema(options) {
|
|
1318
1318
|
const { dmmf, generator } = options;
|
|
1319
1319
|
const raw = generator.config ?? {};
|
|
1320
|
-
const schemaDir = path9.dirname(options.schemaPath);
|
|
1320
|
+
const schemaDir = path9.dirname(generator.sourceFilePath ?? path9.resolve(options.schemaPath));
|
|
1321
1321
|
const shared = await loadSharedConfig(schemaDir);
|
|
1322
1322
|
let groups = [];
|
|
1323
1323
|
const loadGroups = async (p) => {
|
|
@@ -2251,8 +2251,9 @@ var PrismaToLaravelModelGenerator = class {
|
|
|
2251
2251
|
// src/generator/modeler/index.ts
|
|
2252
2252
|
async function generateLaravelModels(options) {
|
|
2253
2253
|
const { dmmf, generator } = options;
|
|
2254
|
+
generator.sourceFilePath;
|
|
2254
2255
|
const raw = generator.config ?? {};
|
|
2255
|
-
const schemaDir = path9.dirname(options.schemaPath);
|
|
2256
|
+
const schemaDir = path9.dirname(path9.resolve(options.schemaPath));
|
|
2256
2257
|
const shared = await loadSharedConfig(schemaDir);
|
|
2257
2258
|
let groups = [];
|
|
2258
2259
|
if (raw["groups"]) {
|