Skip to content

Commit

Permalink
fix(build): fix default exports in ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSzewczyk committed Dec 24, 2024
1 parent f6f9eb6 commit db73189
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/JanSzewczyk/prettier-config/blob/main/LICENSE)

---

[Prettier](https://prettier.io/) shareable configuration.

## 📚 Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"license": "MIT",
"author": "Szum-Tech <szum.tech@gmail.com>",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"files": [
Expand Down Expand Up @@ -47,7 +53,7 @@
"typescript": "^5.7.2"
},
"peerDependencies": {
"prettier": "^3.4.2"
"prettier": ">=3.0.0"
},
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit db73189

Please sign in to comment.