Skip to content

Commit

Permalink
fix: add types
Browse files Browse the repository at this point in the history
PR-URL: #248
Credit: @unional
Close: #248
Reviewed-by: @isaacs
  • Loading branch information
unional authored and isaacs committed Jan 14, 2023
1 parent 8afacdd commit 8a3a481
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"main": "./dist/cjs/src/index.js",
"module": "./dist/mjs/src/index.js",
"bin": "./dist/cjs/src/bin.js",
"types": "./dist/cjs/src/index.d.ts",
"exports": {
".": {
"types": "./dist/cjs/src/index.d.ts",
"import": "./dist/mjs/src/index.js",
"require": "./dist/cjs/src/index.js"
}
Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ t.same(
require('../package.json').exports,
{
'.': {
types: './dist/cjs/src/index.d.ts',
import: './dist/mjs/src/index.js',
require: './dist/cjs/src/index.js',
},
Expand Down

0 comments on commit 8a3a481

Please sign in to comment.