bun-query-builder 0.1.38 → 0.1.39
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/bin/cli.js +10 -6
- package/dist/src/index.js +9 -5
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -18684,11 +18684,15 @@ async function resetDatabase(dir, opts = {}) {
|
|
|
18684
18684
|
} else {
|
|
18685
18685
|
info("-- No enum types found to drop");
|
|
18686
18686
|
}
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18687
|
+
if (tableNames.length > 0) {
|
|
18688
|
+
try {
|
|
18689
|
+
await deleteMigrationFiles(dir, workspaceRoot, opts);
|
|
18690
|
+
} catch (err) {
|
|
18691
|
+
console.error(err);
|
|
18692
|
+
info("-- Could not clean up migration files");
|
|
18693
|
+
}
|
|
18694
|
+
} else {
|
|
18695
|
+
info("-- No models directory found; keeping committed migration files in place");
|
|
18692
18696
|
}
|
|
18693
18697
|
try {
|
|
18694
18698
|
await clearGeneratedDirectory(workspaceRoot);
|
|
@@ -30744,7 +30748,7 @@ function getPrefix() {
|
|
|
30744
30748
|
}
|
|
30745
30749
|
var prefix = getPrefix();
|
|
30746
30750
|
// package.json
|
|
30747
|
-
var version2 = "0.1.
|
|
30751
|
+
var version2 = "0.1.39";
|
|
30748
30752
|
|
|
30749
30753
|
// bin/cli.ts
|
|
30750
30754
|
init_actions();
|
package/dist/src/index.js
CHANGED
|
@@ -18684,11 +18684,15 @@ async function resetDatabase(dir, opts = {}) {
|
|
|
18684
18684
|
} else {
|
|
18685
18685
|
info("-- No enum types found to drop");
|
|
18686
18686
|
}
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18687
|
+
if (tableNames.length > 0) {
|
|
18688
|
+
try {
|
|
18689
|
+
await deleteMigrationFiles(dir, workspaceRoot, opts);
|
|
18690
|
+
} catch (err) {
|
|
18691
|
+
console.error(err);
|
|
18692
|
+
info("-- Could not clean up migration files");
|
|
18693
|
+
}
|
|
18694
|
+
} else {
|
|
18695
|
+
info("-- No models directory found; keeping committed migration files in place");
|
|
18692
18696
|
}
|
|
18693
18697
|
try {
|
|
18694
18698
|
await clearGeneratedDirectory(workspaceRoot);
|
package/package.json
CHANGED