Skip to content

Commit

Permalink
Add exports field to package (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkoops authored Dec 27, 2023
1 parent ea8e839 commit 8a840ea
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,42 @@
"name": "classnames",
"version": "2.4.0",
"description": "A simple utility for conditionally joining classNames together",
"main": "index.js",
"author": "Jed Watson",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/JedWatson/classnames.git"
},
"type": "commonjs",
"main": "./index.js",
"types": "./index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./index.js": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./bind": {
"types": "./bind.d.ts",
"default": "./bind.js"
},
"./bind.js": {
"types": "./bind.d.ts",
"default": "./bind.js"
},
"./dedupe": {
"types": "./dedupe.d.ts",
"default": "./dedupe.js"
},
"./dedupe.js": {
"types": "./dedupe.d.ts",
"default": "./dedupe.js"
}
},
"scripts": {
"test": "node --test ./tests/*.mjs",
"check-types": "tsd"
Expand Down

0 comments on commit 8a840ea

Please sign in to comment.