Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix esm compatibility for @headlessui/tailwindcss plugin package #3051

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/@headlessui-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fix ESM types ([#2880](https://github.com/tailwindlabs/headlessui/pull/2880))
- Improve CJS types ([#2880](https://github.com/tailwindlabs/headlessui/pull/2880))
- Improve ESM types ([#3051](https://github.com/tailwindlabs/headlessui/pull/3051))

## [0.2.0] - 2023-07-27

Expand Down
3 changes: 2 additions & 1 deletion packages/@headlessui-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/headlessui.esm.js",
"type": "module",
"license": "MIT",
"files": [
"README.md",
Expand Down Expand Up @@ -32,7 +33,7 @@
},
"scripts": {
"prepublishOnly": "npm run build",
"build": "../../scripts/build.sh --external:tailwindcss && node ./scripts/fix-types.js",
"build": "../../scripts/build.sh --external:tailwindcss && node ./scripts/fix-types.cjs",
"watch": "../../scripts/watch.sh --external:tailwindcss",
"test": "../../scripts/test.sh",
"lint": "../../scripts/lint.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/@headlessui-tailwindcss/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import plugin from 'tailwindcss/plugin'
import plugin from 'tailwindcss/plugin.js'

interface Options {
/**
Expand Down