Skip to content

Commit

Permalink
Fix: Worker path
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jan 9, 2023
1 parent 8779366 commit 142235c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Worker {
static getInstance() {
if (!Worker.instance) {
Worker.instance = new piscina_1.default({
filename: (0, path_1.join)(process.cwd(), "build", "worker.js")
filename: (0, path_1.join)(__dirname, "../", "build", "worker.js")
});
}
return Worker.instance;
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Worker {
public static getInstance(): Piscina {
if(!Worker.instance) {
Worker.instance = new Piscina({
filename: join(process.cwd(), "build", "worker.js")
filename: join(__dirname, "../", "build", "worker.js")
});
}
return Worker.instance;
Expand Down

0 comments on commit 142235c

Please sign in to comment.