@knotpad/app 0.2.0 → 0.2.2
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/bin/brief.js +1 -1
- package/instrumentation.tsx +1 -1
- package/lib/prisma.ts +1 -1
- package/package.json +1 -1
package/bin/brief.js
CHANGED
|
@@ -197,7 +197,7 @@ if (!fs.existsSync(BUILD_ID)) {
|
|
|
197
197
|
// ── 4. Start server ────────────────────────────────────────────────────────────
|
|
198
198
|
|
|
199
199
|
// Pre-create PGlite data directory so the app can open it immediately at startup
|
|
200
|
-
const DB_DIR = path.join(WORK_DIR, ".
|
|
200
|
+
const DB_DIR = path.join(WORK_DIR, ".knotpad", "db");
|
|
201
201
|
try {
|
|
202
202
|
fs.mkdirSync(DB_DIR, { recursive: true });
|
|
203
203
|
} catch (e) {
|
package/instrumentation.tsx
CHANGED
|
@@ -20,7 +20,7 @@ export async function register() {
|
|
|
20
20
|
const os = await import("os");
|
|
21
21
|
|
|
22
22
|
const workDir = process.cwd();
|
|
23
|
-
const dbDir = path.join(workDir, ".
|
|
23
|
+
const dbDir = path.join(workDir, ".knotpad", "db");
|
|
24
24
|
try {
|
|
25
25
|
await fs.mkdir(dbDir, { recursive: true });
|
|
26
26
|
} catch (e) {
|
package/lib/prisma.ts
CHANGED
|
@@ -81,7 +81,7 @@ export async function initLocalPrisma(): Promise<void> {
|
|
|
81
81
|
|
|
82
82
|
const dataDir = process.env.BRIEF_DATA_DIR
|
|
83
83
|
? path.resolve(process.env.BRIEF_DATA_DIR)
|
|
84
|
-
: path.join(process.cwd(), ".
|
|
84
|
+
: path.join(process.cwd(), ".knotpad", "db");
|
|
85
85
|
|
|
86
86
|
const pglite = new PGlite(dataDir);
|
|
87
87
|
g.briefPglite = pglite;
|