Skip to content

Commit

Permalink
fix: compile typings with rest of the lib (#292)
Browse files Browse the repository at this point in the history
* fix: make typings to be compiled with rest of the lib

* Fix paths in package files
  • Loading branch information
felixmosh authored Jun 2, 2021
1 parent 9e05dc8 commit 629db86
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/api/bullAdapter.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { BullAdapter } from './dist/queueAdapters/bull';
export { BullAdapter } from './dist/src/queueAdapters/bull';
2 changes: 1 addition & 1 deletion packages/api/bullAdapter.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./dist/queueAdapters/bull');
module.exports = require('./dist/src/queueAdapters/bull');
2 changes: 1 addition & 1 deletion packages/api/bullMQAdapter.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { BullMQAdapter } from './dist/queueAdapters/bullMQ';
export { BullMQAdapter } from './dist/src/queueAdapters/bullMQ';
3 changes: 1 addition & 2 deletions packages/api/bullMQAdapter.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference path="./dist/queueAdapters/bullMQ.d.ts" />
module.exports = require('./dist/queueAdapters/bullMQ');
module.exports = require('./dist/src/queueAdapters/bullMQ');
3 changes: 1 addition & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
},
"license": "MIT",
"author": "felixmosh",
"main": "dist/index.js",
"main": "dist/src/index.js",
"files": [
"dist",
"typings",
"*Adapter.*"
],
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"resolveJsonModule": true,
"declaration": true
},
"include": ["./src", "./typings/*.d.ts"]
"include": ["./src", "./typings/*.ts"]
}
4 changes: 2 additions & 2 deletions packages/api/typings/app.d.ts → packages/api/typings/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseAdapter } from '../dist/queueAdapters/base';
import { STATUSES } from '../dist/constants/statuses';
import { BaseAdapter } from '../src/queueAdapters/base';
import { STATUSES } from '../src/constants/statuses';

export type JobCleanStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed';

Expand Down
File renamed without changes.

0 comments on commit 629db86

Please sign in to comment.