Skip to content

Commit

Permalink
Fix: bree extension (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Jan 7, 2023
1 parent c69d2f3 commit a098f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "",
"scripts": {
"build": "tsc",
"dev": "ts-node src/server.ts",
"dev": "TS_NODE=true ts-node src/server.ts",
"start": "node ./dist/server.js",
"migrate": "node-pg-migrate",
"test:unit": "jest --config=jest-unit.config.js -w=5 --coverage",
"test:contract": "jest --config=contract.config.js -w=5",
"test:integration": "jest --forceExit --config=integration.config.js --runInBand",
"test:integration": "TS_NODE=true jest --forceExit --config=integration.config.js --runInBand",
"lint": "eslint -c .eslintrc --quiet --ext .ts .",
"lint:fix": "eslint -c .eslintrc --quiet --ext .ts . --fix",
"ts:check": "tsc --noEmit"
Expand Down
2 changes: 1 addition & 1 deletion src/server/utils/scheduled-tasks/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Bree.extend(require("@breejs/ts-worker"))

export const bree = new Bree({
root: path.join(__dirname, "jobs"),
defaultExtension: "ts",
defaultExtension: process.env.TS_NODE ? "ts" : "js",
jobs: [{
name: "analytics-report",
interval: "every 24 hours",
Expand Down

0 comments on commit a098f53

Please sign in to comment.