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`
This commit is contained in:
Luud Janssen
2023-03-22 13:56:43 +01:00
committed by GitHub
parent d0888b03b5
commit e814c5022d
@@ -4,12 +4,15 @@
"description": "A complementary Tailwind CSS plugin",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/headlessui.esm.js",
"license": "MIT",
"files": [
"README.md",
"dist"
],
"exports": {
"types": "./dist/index.d.ts",
"import": "./dist/headlessui.esm.js",
"require": "./dist/index.cjs"
},
"sideEffects": false,