Skip to content

Commit 57a3eec

Browse files
committed
chore: add styles to a separate exports
1 parent 760bee5 commit 57a3eec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/accessibility-buttons/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
},
2020
"funding": "https://github.com/sponsors/tiagoporto",
2121
"type": "module",
22-
"exports": "./src/index.ts",
22+
"exports": {
23+
".": "./src/index.ts",
24+
"./styles": "./src/accessibility-buttons.css"
25+
},
2326
"engines": {
2427
"node": ">=18"
2528
},

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { accessibilityButtons } from 'accessibility-buttons'
2+
import 'accessibility-buttons/styles'
23

34
import './styles'
45

0 commit comments

Comments
 (0)