Skip to content

Commit

Permalink
fix: export module types
Browse files Browse the repository at this point in the history
resolves #61
  • Loading branch information
farnabaz committed Jan 14, 2025
1 parent 6807b69 commit b6d3e47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"exports": {
".": {
"import": "./dist/module.mjs",
"require": "./dist/module.cjs"
"require": "./dist/module.cjs",
"types": "./dist/types.d.ts"
}
},
"main": "./dist/module.cjs",
Expand Down
1 change: 1 addition & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { loadExternalSources } from './loader'
import type { NuxtComponentMeta } from './types'

export * from './options'
export type * from './types.d'

const slotReplacer = (_: unknown, _before: string, slotName: string, _rest: unknown) => `<slot ${_before || ''}${slotName === 'default' ? '' : `name="${slotName}"`}`

Expand Down

0 comments on commit b6d3e47

Please sign in to comment.