@buildautomaton/cli 0.1.77 → 0.1.78
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.js +122 -49
- package/dist/cli.js.map +4 -4
- package/dist/index.js +122 -49
- package/dist/index.js.map +4 -4
- package/dist/worker.js +5 -2
- package/dist/worker.js.map +2 -2
- package/package.json +1 -1
package/dist/worker.js
CHANGED
|
@@ -1427,7 +1427,7 @@ var init_migrate_cli_sqlite = __esm({
|
|
|
1427
1427
|
});
|
|
1428
1428
|
|
|
1429
1429
|
// src/sqlite/cli-database.ts
|
|
1430
|
-
var cliSqlite, safeCloseCliSqliteDatabase,
|
|
1430
|
+
var legacyImportDoneForPath, cliSqlite, safeCloseCliSqliteDatabase, openCliSqliteConnection, withCliSqliteSync, withCliSqlite, ensureCliSqliteInitialized;
|
|
1431
1431
|
var init_cli_database = __esm({
|
|
1432
1432
|
"src/sqlite/cli-database.ts"() {
|
|
1433
1433
|
"use strict";
|
|
@@ -1437,16 +1437,19 @@ var init_cli_database = __esm({
|
|
|
1437
1437
|
init_import_cli_legacy_disk_data();
|
|
1438
1438
|
init_migrate_cli_sqlite();
|
|
1439
1439
|
init_sqlite_errors();
|
|
1440
|
+
legacyImportDoneForPath = null;
|
|
1440
1441
|
cliSqlite = createSqliteDatabaseAccess({
|
|
1441
1442
|
getPath: getCliSqlitePath,
|
|
1442
1443
|
ensureParentDir: ensureCliSqliteParentDir,
|
|
1443
1444
|
migrate: migrateCliSqlite,
|
|
1444
1445
|
afterOpen: (db, options) => {
|
|
1446
|
+
const sqlitePath = getCliSqlitePath();
|
|
1447
|
+
if (legacyImportDoneForPath === sqlitePath) return;
|
|
1445
1448
|
importCliSqliteLegacyDiskData(db, options?.logLegacyMigration);
|
|
1449
|
+
legacyImportDoneForPath = sqlitePath;
|
|
1446
1450
|
}
|
|
1447
1451
|
});
|
|
1448
1452
|
safeCloseCliSqliteDatabase = cliSqlite.safeClose;
|
|
1449
|
-
closeAllCliSqliteConnections = cliSqlite.closeAllConnections;
|
|
1450
1453
|
openCliSqliteConnection = cliSqlite.openConnection;
|
|
1451
1454
|
withCliSqliteSync = cliSqlite.withSync;
|
|
1452
1455
|
withCliSqlite = cliSqlite.withAsync;
|