@hatk/hatk 0.0.1-alpha.31 → 0.0.1-alpha.32

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -10
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -14,7 +14,7 @@ import { log } from "./logger.js";
14
14
  import { loadConfig } from "./config.js";
15
15
  import { loadLexicons, storeLexicons, discoverCollections, buildSchemas } from "./database/schema.js";
16
16
  import { discoverViews } from "./views.js";
17
- import { initDatabase, getCursor, querySQL, getSqlDialect, getSchemaDump, migrateSchema, getDatabasePort } from "./database/db.js";
17
+ import { initDatabase, getCursor, querySQL, getSqlDialect, getSchemaDump, migrateSchema } from "./database/db.js";
18
18
  import { createAdapter } from "./database/adapter-factory.js";
19
19
  import { getDialect } from "./database/dialect.js";
20
20
  import { setSearchPort } from "./database/fts.js";
@@ -147,15 +147,9 @@ const backfillOpts = {
147
147
  function runBackfillAndRestart() {
148
148
  runBackfill(backfillOpts)
149
149
  .then(async (recordCount) => {
150
- const port = getDatabasePort();
151
- if (port.dialect !== 'sqlite') {
152
- log('[main] Backfill complete, rebuilding FTS indexes...');
153
- await rebuildAllIndexes(collections);
154
- log('[main] FTS indexes ready');
155
- }
156
- else {
157
- log('[main] Backfill complete (FTS updated incrementally)');
158
- }
150
+ log('[main] Backfill complete, building FTS indexes...');
151
+ await rebuildAllIndexes(collections);
152
+ log('[main] FTS indexes ready');
159
153
  return recordCount;
160
154
  })
161
155
  .then((recordCount) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatk/hatk",
3
- "version": "0.0.1-alpha.31",
3
+ "version": "0.0.1-alpha.32",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "hatk": "dist/cli.js"