drizzle-kit 0.17.1-2d0a8cb → 0.17.1-5df459e
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/index.js +10 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -26915,7 +26915,6 @@ var init_serializer = __esm({
|
|
|
26915
26915
|
return generateSqliteSnapshot2(tables, enums);
|
|
26916
26916
|
};
|
|
26917
26917
|
prepareFilenames = (path3) => {
|
|
26918
|
-
console.log("path: " + path3);
|
|
26919
26918
|
if (typeof path3 === "string") {
|
|
26920
26919
|
path3 = [path3];
|
|
26921
26920
|
}
|
|
@@ -26928,7 +26927,6 @@ var init_serializer = __esm({
|
|
|
26928
26927
|
});
|
|
26929
26928
|
return result2;
|
|
26930
26929
|
}, /* @__PURE__ */ new Set());
|
|
26931
|
-
console.log("result path: " + result);
|
|
26932
26930
|
return [...result];
|
|
26933
26931
|
};
|
|
26934
26932
|
}
|
|
@@ -50780,12 +50778,20 @@ var mySqlCliConfigSchema = intersectionType(
|
|
|
50780
50778
|
);
|
|
50781
50779
|
var drizzleConfigFromFile = (configPath) => {
|
|
50782
50780
|
var _a;
|
|
50781
|
+
const defaultTsConfigExists = (0, import_fs10.existsSync)((0, import_path6.join)((0, import_path6.resolve)("drizzle.config.ts")));
|
|
50782
|
+
const defaultJsConfigExists = (0, import_fs10.existsSync)((0, import_path6.join)((0, import_path6.resolve)("drizzle.config.js")));
|
|
50783
|
+
const defaultJsonConfigExists = (0, import_fs10.existsSync)(
|
|
50784
|
+
(0, import_path6.join)((0, import_path6.resolve)("drizzle.config.json"))
|
|
50785
|
+
);
|
|
50786
|
+
const defaultConfigPath = defaultTsConfigExists ? "drizzle.config.ts" : defaultJsConfigExists ? "drizzle.config.js" : "drizzle.config.json";
|
|
50783
50787
|
if (!configPath) {
|
|
50784
50788
|
console.log(
|
|
50785
|
-
source_default.gray(
|
|
50789
|
+
source_default.gray(
|
|
50790
|
+
`No config path provided, using default '${defaultConfigPath}'`
|
|
50791
|
+
)
|
|
50786
50792
|
);
|
|
50787
50793
|
}
|
|
50788
|
-
const path3 = (0, import_path6.join)((0, import_path6.resolve)(configPath != null ? configPath :
|
|
50794
|
+
const path3 = (0, import_path6.join)((0, import_path6.resolve)(configPath != null ? configPath : defaultConfigPath));
|
|
50789
50795
|
if (!(0, import_fs10.existsSync)(path3)) {
|
|
50790
50796
|
console.log(`${path3} file does not exist`);
|
|
50791
50797
|
process.exit(1);
|