fix: Also build entry.ts into dist/entry.mjs.

This commit is contained in:
cpojer
2026-01-31 17:26:39 +09:00
parent 1766cd4123
commit ed65131c1c
7 changed files with 10 additions and 12 deletions

View File

@@ -254,7 +254,7 @@ vi.mock("../daemon/service.js", () => ({
isLoaded: async () => true,
readRuntime: async () => ({ status: "running", pid: 1234 }),
readCommand: async () => ({
programArguments: ["node", "dist/entry.js", "gateway"],
programArguments: ["node", "dist/entry.mjs", "gateway"],
sourcePath: "/tmp/Library/LaunchAgents/bot.molt.gateway.plist",
}),
}),
@@ -267,7 +267,7 @@ vi.mock("../daemon/node-service.js", () => ({
isLoaded: async () => true,
readRuntime: async () => ({ status: "running", pid: 4321 }),
readCommand: async () => ({
programArguments: ["node", "dist/entry.js", "node-host"],
programArguments: ["node", "dist/entry.mjs", "node-host"],
sourcePath: "/tmp/Library/LaunchAgents/bot.molt.node.plist",
}),
}),