Skip to content

Commit

Permalink
Merge pull request #3 from kgkg/main
Browse files Browse the repository at this point in the history
included tsconfig-paths in worker.js
  • Loading branch information
shadowgate15 authored Jan 20, 2022
2 parents 1dd267f + 09719c4 commit cb5b748
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"nyc": "latest",
"remark-cli": "latest",
"remark-preset-github": "latest",
"tsconfig-paths": "latest",
"xo": "latest"
},
"engines": {
Expand All @@ -61,7 +62,8 @@
"license": "MIT",
"main": "src/index.js",
"peerDependencies": {
"bree": "7.x"
"bree": "7.x",
"tsconfig-paths": "3.x"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { workerData } = require('worker_threads');

require('ts-node').register();
require('tsconfig-paths').register();

require(workerData.path);

0 comments on commit cb5b748

Please sign in to comment.