Skip to content

Commit

Permalink
feat: add json files to exports in package.json (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jun 14, 2021
1 parent 4fce606 commit e35c9b4
Show file tree
Hide file tree
Showing 11 changed files with 6,376 additions and 7,115 deletions.
9 changes: 9 additions & 0 deletions .changeset/honest-mails-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'svgmoji': minor
'@svgmoji/blob': minor
'@svgmoji/noto': minor
'@svgmoji/openmoji': minor
'@svgmoji/twemoji': minor
---

Add `.json` files to the exports. This fixes the webpack issue raised in [#12](https://github.com/svgmoji/svgmoji/issues/12).
2 changes: 1 addition & 1 deletion .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
version: # id of input
description: 'The version to use'
required: false
default: 5.15.0
default: 6.7.6

runs:
using: 'composite'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
},
"engines": {
"node": ">=14",
"pnpm": "^5.15.0"
"pnpm": ">=6"
},
"manypkg": {
"defaultBranch": "HEAD"
Expand Down
9 changes: 9 additions & 0 deletions packages/svgmoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
"types": "./dist/svgmoji.cjs.d.ts",
"default": "./dist/svgmoji.esm.js"
},
"./emoji-discord.json": "./emoji-discord.json",
"./emoji-discord.min.json": "./emoji-discord.min.json",
"./emoji-github.json": "./emoji-github.json",
"./emoji-github.min.json": "./emoji-github.min.json",
"./emoji-slack.json": "./emoji-slack.json",
"./emoji-slack.min.json": "./emoji-slack.min.json",
"./emoji.json": "./emoji.json",
"./emoji.min.json": "./emoji.min.json",
"./emoticons.json": "./emoticons.json",
"./package.json": "./package.json",
"./types/*": "./dist/declarations/src/*.d.ts"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/svgmoji__blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"types": "./dist/svgmoji-blob.cjs.d.ts",
"default": "./dist/svgmoji-blob.esm.js"
},
"./extra.json": "./extra.json",
"./missing.json": "./missing.json",
"./package.json": "./package.json",
"./types/*": "./dist/declarations/src/*.d.ts"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/svgmoji__noto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"types": "./dist/svgmoji-noto.cjs.d.ts",
"default": "./dist/svgmoji-noto.esm.js"
},
"./extra.json": "./extra.json",
"./missing.json": "./missing.json",
"./package.json": "./package.json",
"./types/*": "./dist/declarations/src/*.d.ts"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/svgmoji__openmoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"types": "./dist/svgmoji-openmoji.cjs.d.ts",
"default": "./dist/svgmoji-openmoji.esm.js"
},
"./extra.json": "./extra.json",
"./missing.json": "./missing.json",
"./package.json": "./package.json",
"./types/*": "./dist/declarations/src/*.d.ts"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/svgmoji__twemoji/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"types": "./dist/svgmoji-twemoji.cjs.d.ts",
"default": "./dist/svgmoji-twemoji.esm.js"
},
"./extra.json": "./extra.json",
"./missing.json": "./missing.json",
"./package.json": "./package.json",
"./types/*": "./dist/declarations/src/*.d.ts"
},
Expand Down

0 comments on commit e35c9b4

Please sign in to comment.