Skip to content

Commit 7d9d6d6

Browse files
Merge pull request #1296 from TCNorris/type-export-fix
Added typings to exports appropriately
2 parents 2f5a15a + 64ca93b commit 7d9d6d6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@
3434
"type": "module",
3535
"main": "./lib/olcs.js",
3636
"exports": {
37-
".": "./lib/olcs.js",
38-
"./src/*": "./lib/olcs/*.js",
39-
"./ts/*": "./lib/olcs/*.ts",
40-
"./*": "./lib/olcs/*.js"
37+
".": {
38+
"types": "./lib/types/olcs.d.ts",
39+
"default": "./lib/olcs.js"
40+
},
41+
"./src/*": {
42+
"types": "./lib/types/*.d.ts",
43+
"default": "./lib/olcs/*.js"
44+
},
45+
"./*": {
46+
"types": "./lib/types/*.d.ts",
47+
"default": "./lib/olcs/*.js"
48+
}
4149
},
4250
"parcelIgnore": [
4351
"dist/examples/rawjs/*"

0 commit comments

Comments
 (0)