Document typedefs better. Fix tables deletion schema sync issue.
This commit is contained in:
@@ -1,9 +1,23 @@
|
||||
import path from "path";
|
||||
import type { BunSQLiteConfig } from "../types";
|
||||
|
||||
export default function grabDirNames() {
|
||||
type Params = {
|
||||
config?: BunSQLiteConfig;
|
||||
};
|
||||
|
||||
export default function grabDirNames(params?: Params) {
|
||||
const ROOT_DIR = process.cwd();
|
||||
const BUN_SQLITE_DIR = path.join(ROOT_DIR, ".bun-sqlite");
|
||||
const BUN_SQLITE_TEMP_DIR = path.join(BUN_SQLITE_DIR, ".tmp");
|
||||
const BUN_SQLITE_LIVE_SCHEMA = path.join(
|
||||
BUN_SQLITE_DIR,
|
||||
"live-schema.json",
|
||||
);
|
||||
|
||||
return {
|
||||
ROOT_DIR,
|
||||
BUN_SQLITE_DIR,
|
||||
BUN_SQLITE_TEMP_DIR,
|
||||
BUN_SQLITE_LIVE_SCHEMA,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user