Skip to content

Commit 69041d5

Browse files
authored
feat: export helpers (#46)
closes #44
1 parent 2ffc9ca commit 69041d5

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88

99
### Added
1010

11+
- Export helpers
1112
- Add Accordion element
1213

1314
## [0.4.0] - 2024-05-25

packages/core/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@
5757
"./hooks/use_outside_click": {
5858
"types": "./dist/hooks/use_outside_click.d.ts",
5959
"default": "./dist/hooks/use_outside_click.js"
60+
},
61+
"./helpers/array": {
62+
"types": "./dist/helpers/array.d.ts",
63+
"default": "./dist/helpers/array.js"
64+
},
65+
"./helpers/focus_trap": {
66+
"types": "./dist/helpers/focus_trap.d.ts",
67+
"default": "./dist/helpers/focus_trap.js"
68+
},
69+
"./helpers/focus": {
70+
"types": "./dist/helpers/focus.d.ts",
71+
"default": "./dist/helpers/focus.js"
72+
},
73+
"./helpers/scroll_lock": {
74+
"types": "./dist/helpers/scroll_lock.d.ts",
75+
"default": "./dist/helpers/scroll_lock.js"
6076
}
6177
},
6278
"files": [

packages/core/rollup.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ import { fileURLToPath } from 'node:url';
77
import copy from 'rollup-plugin-copy';
88

99
const production = process.env.NODE_ENV === 'production';
10-
const exportPaths = ['./src/elements/**/!(*.test).ts', './src/hooks/**/!(*.test).ts'];
10+
const exportPaths = [
11+
'./src/elements/**/!(*.test).ts',
12+
'./src/hooks/**/!(*.test).ts',
13+
'./src/helpers/array.ts',
14+
'./src/helpers/focus_trap.ts',
15+
'./src/helpers/focus.ts',
16+
'./src/helpers/scroll_lock.ts',
17+
];
1118

1219
function pathEntries() {
1320
// Need to export these in package.json

0 commit comments

Comments
 (0)