Skip to content

Commit 08919a4

Browse files
committed
use default export for React icons
use default export for React icons instead of subpath export `/react`. TS doesn't support type declaration for subpath exports (it's in beta)
1 parent 9693021 commit 08919a4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/khaki-jars-retire.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@obosbbl/grunnmuren-icons": minor
3+
---
4+
5+
use default export for React icons

packages/icons/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm install @obosbbl/grunnmuren-icons
1212

1313
```jsx
1414
// React
15-
import { House } from '@obosbbl/grunnmuren-icons/react';
15+
import { House } from '@obosbbl/grunnmuren-icons';
1616

1717
// SVG
1818
import House from '@obosbbl/grunnmuren-icons/svg/House.svg';

packages/icons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"directory": "packages/icons"
1010
},
1111
"exports": {
12-
"./react": "./dist/icons.es.js",
12+
".": "./dist/icons.es.js",
1313
"./svg/*": "./svg/*"
1414
},
1515
"files": [

0 commit comments

Comments
 (0)