Skip to content

Commit

Permalink
refactor task path
Browse files Browse the repository at this point in the history
  • Loading branch information
femshima committed Oct 20, 2023
1 parent 2ecb7f1 commit f78d29c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ await build({
});

await build({
entryPoints: ["src/synthesizer/worker-task.ts"],
entryPoints: ["src/synthesis/task.ts"],
bundle: true,
outfile: "dist/worker-task.js",
outfile: "dist/task.js",
platform: "node",
format: "esm",
external: Object.keys(packageJson.dependencies),
Expand Down
4 changes: 2 additions & 2 deletions src/synthesis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
} from "@discordjs/voice";
import { Message } from "discord.js";
import { AltJTalkConfig, SynthesisOption } from "node-altjtalk-binding";
import { Result, Task } from "./task";
import WorkerPool from "./worker-pool";
import { Result, Task } from "./worker-task";

class SynthesizeWorkerPool extends WorkerPool<Task, Result> {
constructor(
private config: AltJTalkConfig,
numThreads?: number,
) {
super(new URL("worker-task.js", import.meta.url), numThreads ?? 1);
super(new URL("task.js", import.meta.url), numThreads ?? 1);
}

protected override prepareWorker(worker: Worker): void {
Expand Down
File renamed without changes.

0 comments on commit f78d29c

Please sign in to comment.