Skip to content

Commit

Permalink
Update copy-build-files.js (#403)
Browse files Browse the repository at this point in the history
Add "types" to exports to handle issue where typescript wouldn't recognize exported types when using ESM.
  • Loading branch information
AnotherHermit committed Aug 3, 2022
1 parent 95d73ed commit abdc6cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/copy-build-files.js
Expand Up @@ -28,6 +28,7 @@ async function createPackageFile() {
'.': {
import: './index.module.js',
require: './index.js',
types: './index.d.ts',
},
},
}
Expand Down

0 comments on commit abdc6cb

Please sign in to comment.