Skip to content

Commit 9e1ce31

Browse files
committed
fix: change api's exports field, closes #995
1 parent 167467f commit 9e1ce31

File tree

28 files changed

+1215
-907
lines changed

28 files changed

+1215
-907
lines changed

β€Žexample.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// oxlint-disable no-console
22
import { createBullBoard } from '@bull-board/api/src';
3-
import { BullAdapter } from '@bull-board/api/src/queueAdapters/bull';
4-
import { BullMQAdapter } from '@bull-board/api/src/queueAdapters/bullMQ';
3+
import { BullAdapter } from '@bull-board/api/bullAdapter';
4+
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter';
55
import { ExpressAdapter } from '@bull-board/express/src';
66
import * as Bull from 'bull';
77
import Queue3 from 'bull';

β€Žpackage.jsonβ€Ž

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@
4545
"@types/react-dom": "17.0.20"
4646
},
4747
"devDependencies": {
48-
"@types/jest": "^29.5.14",
49-
"@types/node": "^18.19.111",
48+
"@types/jest": "^30.0.0",
49+
"@types/node": "^20.19.11",
5050
"auto-changelog": "^2.5.0",
51-
"concurrently": "^9.1.2",
52-
"jest": "^29.7.0",
53-
"oxlint": "^1.5.0",
54-
"prettier": "^3.5.3",
51+
"concurrently": "^9.2.0",
52+
"jest": "^30.0.5",
53+
"oxlint": "^1.12.0",
54+
"prettier": "^3.6.2",
5555
"release-it": "^15.11.0",
5656
"release-it-yarn-workspaces": "^3.0.0",
57-
"ts-jest": "^29.3.4",
57+
"ts-jest": "^29.4.1",
5858
"ts-node-dev": "^2.0.0",
59-
"typescript": "^5.8.3"
59+
"typescript": "^5.9.2"
6060
},
6161
"packageManager": "[email protected]",
6262
"release-it": {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { BullAdapter } from './dist/src/queueAdapters/bull';
1+
export { BullAdapter } from './dist/queueAdapters/bull';

β€Žpackages/api/bullAdapter.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./dist/src/queueAdapters/bull');
1+
module.exports = require('./dist/queueAdapters/bull');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { BullMQAdapter } from './dist/src/queueAdapters/bullMQ';
1+
export { BullMQAdapter } from './dist/queueAdapters/bullMQ';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./dist/src/queueAdapters/bullMQ');
1+
module.exports = require('./dist/queueAdapters/bullMQ');

β€Žpackages/api/package.jsonβ€Ž

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,22 @@
1717
},
1818
"license": "MIT",
1919
"author": "felixmosh",
20-
"main": "dist/src/index.js",
20+
"main": "dist/index.js",
2121
"files": [
2222
"dist",
23+
"typings",
2324
"*Adapter.*"
2425
],
2526
"exports": {
26-
".": "./dist/src/index.js",
27+
".": "./dist/index.js",
28+
"./dist/*": "./dist/*",
29+
"./typings/*": "./typings/*.d.ts",
2730
"./bullMQAdapter": "./bullMQAdapter.js",
2831
"./bullAdapter": "./bullAdapter.js",
29-
"./src/constants/statuses": "./dist/src/constants/statuses.js",
30-
"./src/queueAdapters/base": "./dist/src/queueAdapters/base.js",
31-
"./typings/app": "./dist/typings/app.d.ts",
32-
"./typings/responses": "./dist/typings/responses.d.ts",
33-
"./dist/typings/app": "./dist/typings/app.d.ts",
34-
"./dist/typings/responses": "./dist/typings/responses.d.ts"
32+
"./constants/statuses": "./dist/constants/statuses.js"
3533
},
3634
"scripts": {
37-
"build": "tsc",
35+
"build": "yarn clean && tsc",
3836
"clean": "rm -rf dist",
3937
"test": "jest"
4038
},
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
Β (0)