Skip to content

Commit

Permalink
feat(octicons-react): add files to package.json and update npmignore (#…
Browse files Browse the repository at this point in the history
…895)

* fix(octicons-react): add files to package.json and update npmignore

* chore: add exports key to package.json

* Create mighty-berries-behave.md

Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
joshblack and joshblack authored Jan 17, 2023
1 parent 87c5569 commit ce11fb3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mighty-berries-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/octicons-react": minor
---

Update the npm package for `@primer/octicons-react` to include the `exports` field and explicitly list out files in `package.json`
4 changes: 3 additions & 1 deletion lib/octicons_react/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@
.next
script
src
./pages
**/pages/**
**/__tests__/**
**/ts-tests/**
8 changes: 8 additions & 0 deletions lib/octicons_react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"license": "MIT",
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"exports": {
"import": "dist/index.esm.js",
"require": "dist/index.umd.js"
},
"sideEffects": false,
"types": "dist/index.d.ts",
"repository": "primer/octicons",
Expand All @@ -19,6 +23,10 @@
"ts-test": "tsc -P ts-tests",
"posttest": "yarn ts-test"
},
"files": [
"build",
"dist"
],
"keywords": [
"GitHub",
"icons",
Expand Down

0 comments on commit ce11fb3

Please sign in to comment.