Skip to content

Commit ce11fb3

Browse files
authored
feat(octicons-react): add files to package.json and update npmignore (#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]>
1 parent 87c5569 commit ce11fb3

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.changeset/mighty-berries-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/octicons-react": minor
3+
---
4+
5+
Update the npm package for `@primer/octicons-react` to include the `exports` field and explicitly list out files in `package.json`

lib/octicons_react/.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77
.next
88
script
99
src
10-
./pages
10+
**/pages/**
11+
**/__tests__/**
12+
**/ts-tests/**

lib/octicons_react/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"license": "MIT",
88
"main": "dist/index.umd.js",
99
"module": "dist/index.esm.js",
10+
"exports": {
11+
"import": "dist/index.esm.js",
12+
"require": "dist/index.umd.js"
13+
},
1014
"sideEffects": false,
1115
"types": "dist/index.d.ts",
1216
"repository": "primer/octicons",
@@ -19,6 +23,10 @@
1923
"ts-test": "tsc -P ts-tests",
2024
"posttest": "yarn ts-test"
2125
},
26+
"files": [
27+
"build",
28+
"dist"
29+
],
2230
"keywords": [
2331
"GitHub",
2432
"icons",

0 commit comments

Comments
 (0)