refactor(daemon): Move daemon entrypoint out of API layer
MODIFY
packages/daemon/index.js
packages/daemon/index.js
@@ -22,7 +22,7 @@ const defaultLocator = {
cachePath: whereEndoCache(process.platform, process.env),
};
-const endoDaemonPath = url.fileURLToPath(new URL('daemon.js', import.meta.url));
+const endoDaemonPath = url.fileURLToPath(new URL('src/daemon.js', import.meta.url));
export const shutdown = async (locator = defaultLocator) => {
const { getBootstrap, finalize } = await makeEndoClient(

RENAME
packages/daemon/daemon.js
packages/daemon/src/daemon.js
@@ -13,7 +13,7 @@ import fs from 'fs';
import { Far } from '@endo/far';
import { makePromiseKit } from '@endo/promise-kit';
-import { makeCapTPWithConnection } from './src/connection.js';
+import { makeCapTPWithConnection } from './connection.js';
const { quote: q } = assert;
@@ -25,7 +25,7 @@ const sinkError = error => {
};
/**
- * @param {import('./index.js').Locator} locator
+ * @param {import('../index.js').Locator} locator
*/
const makeEndoFacets = locator => {
const publicFacet = Far('Endo public facet', {});

refactor(daemon): Move daemon entrypoint out of API layer