@famgia/omnify-cli 0.0.167 → 0.0.169
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.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -494,7 +494,7 @@ async function runInit(options) {
|
|
|
494
494
|
database: "mysql",
|
|
495
495
|
migrationTool: "laravel",
|
|
496
496
|
generateTypes: true,
|
|
497
|
-
migrationsPath: "database/migrations",
|
|
497
|
+
migrationsPath: "database/migrations/omnify",
|
|
498
498
|
typesPath: "resources/js/types",
|
|
499
499
|
schemasDir: "./schemas"
|
|
500
500
|
};
|
|
@@ -525,7 +525,7 @@ async function runInit(options) {
|
|
|
525
525
|
default: true
|
|
526
526
|
});
|
|
527
527
|
const defaultPaths = {
|
|
528
|
-
laravel: { migrations: "database/migrations", types: "resources/js/types" },
|
|
528
|
+
laravel: { migrations: "database/migrations/omnify", types: "resources/js/types" },
|
|
529
529
|
prisma: { migrations: "prisma/migrations", types: "src/types" },
|
|
530
530
|
drizzle: { migrations: "drizzle", types: "src/types" },
|
|
531
531
|
none: { migrations: "", types: "types" }
|
|
@@ -815,7 +815,7 @@ async function resolveConfig(userConfig, configPath2) {
|
|
|
815
815
|
};
|
|
816
816
|
const database = userConfig.database.devUrl !== void 0 ? { ...databaseConfig, devUrl: userConfig.database.devUrl } : databaseConfig;
|
|
817
817
|
const laravelConfig = {
|
|
818
|
-
migrationsPath: userConfig.output?.laravel?.migrationsPath ?? "database/migrations"
|
|
818
|
+
migrationsPath: userConfig.output?.laravel?.migrationsPath ?? "database/migrations/omnify"
|
|
819
819
|
};
|
|
820
820
|
const laravel = buildLaravelConfig(laravelConfig, userConfig.output?.laravel);
|
|
821
821
|
const tsConfig = userConfig.output?.typescript;
|