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/cli/index.js +11 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/index.js +11 -8
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +9 -1
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/web/index.js +9 -1
- package/dist/web/index.js.map +1 -1
- package/dist/worker/index.js +9 -1
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/worker/index.js
CHANGED
|
@@ -5195,7 +5195,15 @@ var _db = null;
|
|
|
5195
5195
|
var _migrationRan = false;
|
|
5196
5196
|
function getMigrationsFolder() {
|
|
5197
5197
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
5198
|
-
|
|
5198
|
+
let dir = __dirname;
|
|
5199
|
+
for (let i = 0; i < 5; i++) {
|
|
5200
|
+
const candidate = join(dir, "drizzle", "meta", "_journal.json");
|
|
5201
|
+
if (existsSync(candidate)) {
|
|
5202
|
+
return join(dir, "drizzle");
|
|
5203
|
+
}
|
|
5204
|
+
dir = dirname(dir);
|
|
5205
|
+
}
|
|
5206
|
+
return join(__dirname, "../../drizzle");
|
|
5199
5207
|
}
|
|
5200
5208
|
function initDb() {
|
|
5201
5209
|
const dataDir = dirname(DB_FILE_PATH);
|