mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 20:37:57 +02:00
fix(client-standalone): get client scripts to run
This commit is contained in:
2
apps/client-standalone/src/desktop.ts
Normal file
2
apps/client-standalone/src/desktop.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// Re-export desktop from client
|
||||
export * from "../../client/src/desktop";
|
||||
@@ -117,9 +117,9 @@
|
||||
}
|
||||
|
||||
async function loadScripts() {
|
||||
const assetPath = glob.assetPath;
|
||||
await import(`./${assetPath}/runtime.js`);
|
||||
await import(`./${assetPath}/desktop.js`);
|
||||
// Import from local re-export files that reference client source
|
||||
await import("./runtime.ts");
|
||||
await import("./desktop.ts");
|
||||
}
|
||||
|
||||
bootstrap();
|
||||
|
||||
2
apps/client-standalone/src/runtime.ts
Normal file
2
apps/client-standalone/src/runtime.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// Re-export runtime from client
|
||||
export * from "../../client/src/runtime";
|
||||
@@ -135,11 +135,11 @@ export default defineConfig(() => ({
|
||||
},
|
||||
build: {
|
||||
target: "esnext",
|
||||
outDir: join(__dirname, 'dist'), // Keep output in parent directory
|
||||
outDir: join(__dirname, 'dist'),
|
||||
emptyOutDir: true,
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: join(__dirname, 'src', 'index.html') // Input relative to config file
|
||||
main: join(__dirname, 'src', 'index.html')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user