xedoc-cli 0.1.5 → 0.1.6
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/xedoc.mjs +5 -4
- package/build/client/assets/app-layout--vTe8I2j.js +1 -0
- package/build/client/assets/{app-shell-DuerBOKJ.js → app-shell-ClOglt7r.js} +1 -1
- package/build/client/assets/chat-Bf8hrS42.js +1 -0
- package/build/client/assets/home-BLKISIGJ.js +1 -0
- package/build/client/assets/{manifest-ec3ca100.js → manifest-f96902fd.js} +1 -1
- package/build/server/index.js +1 -1
- package/package.json +1 -1
- package/server/index.mjs +19 -4
- package/build/client/assets/app-layout-BlCsViOn.js +0 -1
- package/build/client/assets/chat-DFejNUT4.js +0 -1
- package/build/client/assets/home-JBFbZcNX.js +0 -1
package/bin/xedoc.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { spawn } from "node:child_process"
|
|
|
3
3
|
import { mkdir, readFile } from "node:fs/promises"
|
|
4
4
|
import { homedir } from "node:os"
|
|
5
5
|
import { dirname, join, resolve } from "node:path"
|
|
6
|
-
import { fileURLToPath } from "node:url"
|
|
6
|
+
import { fileURLToPath, pathToFileURL } from "node:url"
|
|
7
7
|
import { createRequire } from "node:module"
|
|
8
8
|
|
|
9
9
|
const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..")
|
|
@@ -151,9 +151,10 @@ async function setupSqliteDatabase(env) {
|
|
|
151
151
|
process.env.DATABASE_URL = env.DATABASE_URL
|
|
152
152
|
process.env.CODEX_WORKSPACE_ROOT = env.CODEX_WORKSPACE_ROOT
|
|
153
153
|
try {
|
|
154
|
-
const
|
|
155
|
-
join(packageRoot, "server/sqlite-setup.mjs")
|
|
156
|
-
)
|
|
154
|
+
const setupModuleUrl = pathToFileURL(
|
|
155
|
+
join(packageRoot, "server/sqlite-setup.mjs"),
|
|
156
|
+
).href
|
|
157
|
+
const { setupSqliteDatabase } = await import(setupModuleUrl)
|
|
157
158
|
await setupSqliteDatabase()
|
|
158
159
|
} finally {
|
|
159
160
|
if (previousDatabaseUrl === undefined) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,t as r}from"./jsx-runtime-Dafdqr5g.js";import{t as s}from"./app-shell-ClOglt7r.js";var a=r(),o=t(function(){return(0,a.jsx)(s,{})});export{o as default};
|