prisma-laravel-migrate 3.1.15 → 3.1.16

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 CHANGED
@@ -2256,9 +2256,8 @@ 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;
2260
2259
  const raw = generator.config ?? {};
2261
- const schemaDir = path13.dirname(path13.resolve(options.schemaPath));
2260
+ const schemaDir = path13.dirname(generator.sourceFilePath ?? path13.resolve(options.schemaPath));
2262
2261
  const shared = await loadSharedConfig(schemaDir);
2263
2262
  let groups = [];
2264
2263
  if (raw["groups"]) {
@@ -1262,9 +1262,8 @@ 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;
1266
1265
  const raw = generator.config ?? {};
1267
- const schemaDir = path7.dirname(path7.resolve(options.schemaPath));
1266
+ const schemaDir = path7.dirname(generator.sourceFilePath ?? path7.resolve(options.schemaPath));
1268
1267
  const shared = await loadSharedConfig(schemaDir);
1269
1268
  let groups = [];
1270
1269
  if (raw["groups"]) {
package/dist/index.js CHANGED
@@ -2251,9 +2251,8 @@ 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;
2255
2254
  const raw = generator.config ?? {};
2256
- const schemaDir = path9.dirname(path9.resolve(options.schemaPath));
2255
+ const schemaDir = path9.dirname(generator.sourceFilePath ?? path9.resolve(options.schemaPath));
2257
2256
  const shared = await loadSharedConfig(schemaDir);
2258
2257
  let groups = [];
2259
2258
  if (raw["groups"]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-laravel-migrate",
3
- "version": "3.1.15",
3
+ "version": "3.1.16",
4
4
  "description": "Generate laravel migrations and/or models using prisma files",
5
5
  "bin": {
6
6
  "prisma-laravel-migrations": "./dist/cli/migrator.index.js",