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 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
- try {
18688
- await deleteMigrationFiles(dir, workspaceRoot, opts);
18689
- } catch (err) {
18690
- console.error(err);
18691
- info("-- Could not clean up migration files");
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.38";
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
- try {
18688
- await deleteMigrationFiles(dir, workspaceRoot, opts);
18689
- } catch (err) {
18690
- console.error(err);
18691
- info("-- Could not clean up migration files");
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-query-builder",
3
3
  "type": "module",
4
- "version": "0.1.38",
4
+ "version": "0.1.39",
5
5
  "description": "A simple yet performant query builder for TypeScript. Built with Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",