Skip to content

Commit 60fae9b

Browse files
committed
fix: use exports instead of main in package.json
1 parent dd1b497 commit 60fae9b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
"version": "0.0.0-development",
44
"description": "OpenAPI v3 compliant REST framework for Node.js, with support for MongoDB and JSON-Schema",
55
"type": "module",
6-
"main": "dist/index.js",
7-
"typings": "dist/index.d.ts",
6+
"exports": {
7+
".": "./dist/index.js",
8+
"./dist/*.js": "./dist/*.js",
9+
"./dist/mongo/*.js": "./dist/mongo/*.js",
10+
"./dist/mongo/operation/*.js": "./dist/mongo/operation/*.js"
11+
},
12+
"types": "./dist/index.d.ts",
813
"directories": {
914
"test": "test"
1015
},
@@ -99,7 +104,7 @@
99104
"mongodoki": "^5.0.0",
100105
"pem": "^1.14.6",
101106
"rimraf": "^3.0.2",
102-
"semantic-release": "^19.0.2",
107+
"semantic-release": "^19.0.3",
103108
"supertest": "^6.2.3",
104109
"typescript": "^4.7.3"
105110
},
@@ -115,12 +120,12 @@
115120
"dot-prop": "^7.2.0",
116121
"eredita": "^1.2.1",
117122
"express": "^4.18.1",
118-
"jsonref": "^8.0.4",
123+
"jsonref": "^8.0.8",
119124
"lodash": "^4.17.21",
120125
"luxon": "^2.4.0",
121126
"mongodb": "^4.7.0",
122127
"needle": "^3.1.0",
123-
"openapi-police": "^4.0.0",
128+
"openapi-police": "^4.0.2",
124129
"rql": "^0.3.3",
125130
"semver": "^7.3.7"
126131
},

0 commit comments

Comments
 (0)