Skip to content

Commit e814c50

Browse files
authored
Add ESM and types paths to package.json for TailwindCSS plugin (#2382)
* Add ESM and `types` paths to `package.json` for TailwindCSS plugin * Move `types` declaration to first key in `exports`
1 parent d0888b0 commit e814c50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/@headlessui-tailwindcss/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
"description": "A complementary Tailwind CSS plugin",
55
"main": "dist/index.cjs",
66
"types": "dist/index.d.ts",
7+
"module": "dist/headlessui.esm.js",
78
"license": "MIT",
89
"files": [
910
"README.md",
1011
"dist"
1112
],
1213
"exports": {
14+
"types": "./dist/index.d.ts",
15+
"import": "./dist/headlessui.esm.js",
1316
"require": "./dist/index.cjs"
1417
},
1518
"sideEffects": false,

0 commit comments

Comments
 (0)