Skip to content

Commit

Permalink
fix: types were not properly exported (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanes authored Dec 20, 2024
1 parent 5ac534c commit 59abad4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 2 additions & 0 deletions lib/components/Autocomplete/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from './Autocomplete';
export * from './AutocompleteItem';
export * from './ScopeListItem';
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,11 @@
"name": "@altinn/altinn-components",
"version": "0.10.3",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/",
"!dist/stories/",
"!dist/components/*/*.stories.js"
],
"files": ["dist/", "!dist/stories/", "!dist/components/*/*.stories.js"],
"types": "dist/types/lib/index.d.ts",
"type": "module",
"description": "Reusable react components",
"sideEffects": [
"*.css"
],
"sideEffects": ["*.css"],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"storybook": "storybook dev -p 6006",
Expand Down
5 changes: 4 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export default () => {
}),
react(),
libInjectCss(),
dts({ include: ['lib'] }),
dts({
root: 'dist',
outDir: 'types',
}),
preserveDirectives(),
],
build: {
Expand Down

0 comments on commit 59abad4

Please sign in to comment.