* Resolve standalone better-sqlite3 native module path. * Used in non-Electron environments to avoid electron-rebuild conflicts.
()
| 523 | * Used in non-Electron environments to avoid electron-rebuild conflicts. |
| 524 | */ |
| 525 | function resolveNativeBinding(): string | undefined { |
| 526 | if (process.versions.electron) return undefined |
| 527 | const nativePath = resolveCliPath('native/better_sqlite3.node') |
| 528 | if (fs.existsSync(nativePath)) return nativePath |
| 529 | return undefined |
| 530 | } |
| 531 | |
| 532 | function initRuntime() { |
| 533 | let config = loadConfig() |
no test coverage detected