opencode-supertask 0.1.19 → 0.1.20

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/web/index.js CHANGED
@@ -16566,7 +16566,15 @@ var _db = null;
16566
16566
  var _migrationRan = false;
16567
16567
  function getMigrationsFolder() {
16568
16568
  const __dirname = dirname(fileURLToPath(import.meta.url));
16569
- return join(__dirname, "../../../drizzle");
16569
+ let dir = __dirname;
16570
+ for (let i = 0; i < 5; i++) {
16571
+ const candidate = join(dir, "drizzle", "meta", "_journal.json");
16572
+ if (existsSync(candidate)) {
16573
+ return join(dir, "drizzle");
16574
+ }
16575
+ dir = dirname(dir);
16576
+ }
16577
+ return join(__dirname, "../../drizzle");
16570
16578
  }
16571
16579
  function initDb() {
16572
16580
  const dataDir = dirname(DB_FILE_PATH);