Skip to content

Commit

Permalink
fix: should use default in exports for pure ESM (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Sep 12, 2022
1 parent c4909b2 commit 926e39b
Show file tree
Hide file tree
Showing 3 changed files with 673 additions and 759 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-birds-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"remark-preset-prettier": patch
---

fix: should use `default` in exports for pure ESM
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"main": "lib/index.js",
"exports": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js"
"default": "./lib/index.js"
},
"types": "lib/index.d.ts",
"files": [
Expand All @@ -24,7 +24,7 @@
"build": "tsc -p tsconfig.lib.json",
"lint": "run-p lint:*",
"lint:es": "eslint . --cache -f friendly",
"lint:tsc": "tsc --noEmit",
"lint:ts": "tsc --noEmit",
"prelint": "yarn build",
"prepare": "patch-package && simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0",
"prerelease": "yarn build",
Expand All @@ -35,15 +35,15 @@
"prettier": ">=1.0.0"
},
"devDependencies": {
"@1stg/lib-config": "^10.0.0",
"@1stg/lib-config": "^10.2.1",
"@changesets/changelog-github": "^0.4.6",
"@changesets/cli": "^2.24.4",
"@types/node": "^18.7.3",
"@types/node": "^18.7.16",
"@types/prettier": "^2.7.0",
"patch-package": "^6.4.7",
"type-coverage": "^2.22.0",
"typescript": "^4.7.4",
"yarn-deduplicate": "^5.0.2"
"typescript": "^4.8.3",
"yarn-deduplicate": "^6.0.0"
},
"resolutions": {
"remark-preset-prettier": "link:."
Expand Down
Loading

0 comments on commit 926e39b

Please sign in to comment.