Skip to content

Commit e81272f

Browse files
committed
fix: add pkg.exports
1 parent 09a4f8a commit e81272f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Stian Didriksen
3+
Copyright (c) 2022 Cody Olsen
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
"typings",
3333
"umd"
3434
],
35+
"exports": {
36+
".": {
37+
"types": "./typings/index.d.ts",
38+
"source": "./src/index.ts",
39+
"import": "./es/index.js",
40+
"require": "./index.js",
41+
"default": "./es/index.js"
42+
},
43+
"./package.json": "./package.json"
44+
},
3545
"scripts": {
3646
"prebuild": "npm run clean",
3747
"build": "npm run build:d.ts && npm run build:cjs && npm run build:es && npm run build:umd && npm run build:umd.min",

0 commit comments

Comments
 (0)