Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @butttons/dora

## 1.4.6

### Patch Changes

- Fix indexer crash: update convertToDatabase call to use object parameters instead of positional arguments
- Fix database lock error during full rebuild by closing existing connections and removing database file before reindexing

## 1.4.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@butttons/dora",
"version": "1.4.5",
"version": "1.4.6",
"module": "src/index.ts",
"type": "module",
"private": true,
Expand Down
14 changes: 7 additions & 7 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,25 @@ export async function index(options: IndexOptions = {}): Promise<void> {
}
debugIndex("SCIP file verified");

debugIndex("Closing any existing database connection...");
closeDb();

debugIndex(
`Starting conversion to database (mode: ${options.full ? "full" : "auto"})`,
);
const conversionStats = await convertToDatabase(
const conversionStats = await convertToDatabase({
scipPath,
databasePath,
config.root,
{
repoRoot: config.root,
options: {
force: options.full,
ignore: ignorePatterns,
},
);
});
debugIndex(
`Conversion completed: ${conversionStats.mode} mode, ${conversionStats.total_files} files, ${conversionStats.total_symbols} symbols`,
);

debugIndex("Closing database connection...");
closeDb();

debugIndex("Updating config with last indexed timestamp...");
config.lastIndexed = new Date().toISOString();
await saveConfig(config);
Expand Down
3 changes: 1 addition & 2 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ function detectWorkspaceType(root: string): "bun" | "pnpm" | "yarn" | null {
if (packageJson.workspaces) {
return "yarn";
}
} catch {
}
} catch {}
}

return null;
Expand Down