Skip to content

Commit

Permalink
chore: move types to top of exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-alford committed Jan 7, 2023
1 parent 27ed73d commit e46e791
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"module": "./dist/esm/index.mjs",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts",
"import": "./dist/esm/index.mjs",
"types": "./dist/index.d.ts"
"require": "./dist/index.js"
},
"./*": {
"require": "./dist/*.js",
"types": "./dist/*.d.ts",
"import": "./dist/esm/*.mjs",
"types": "./dist/*.d.ts"
"require": "./dist/*.js"
}
},
"typesVersions": {
Expand Down
4 changes: 2 additions & 2 deletions scripts/pack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const copyPackageJson: Build<void> = C =>
module: './_esm/index.mjs',
exports: {
'.': {
types: './index.d.ts',
import: './_esm/index.mjs',
require: './index.js',
types: './index.d.ts',
},
'./*': { import: './_esm/*.mjs', require: './*.js', types: './*.d.ts' },
'./*': { types: './*.d.ts', import: './_esm/*.mjs', require: './*.js' },
},
publishConfig: {
access: 'public',
Expand Down

0 comments on commit e46e791

Please sign in to comment.