Skip to content

Commit

Permalink
fix: component exports (#166)
Browse files Browse the repository at this point in the history
Co-authored-by: Farnabaz <farnabaz@gmail.com>
  • Loading branch information
adamdehaven and farnabaz committed Mar 19, 2024
1 parent 7b43d13 commit eacac48
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Now import the `useMarkdownParser` composable we just created along with an expo
<script setup lang="ts">
import { onBeforeMount, ref, watch } from 'vue'
// Import package exports
import { MDCRenderer } from '@nuxtjs/mdc/runtime/components/MDCRenderer'
import MDCRenderer from '@nuxtjs/mdc/runtime/components/MDCRenderer.vue'
import type { MDCParserResult } from '@nuxtjs/mdc/runtime/types/index'
import { useMarkdownParser } from './composables/useMarkdownParser';
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
"types": "./dist/runtime/index.d.ts",
"import": "./dist/runtime/index.mjs"
},
"./runtime/components/*": {
"types": "./dist/runtime/components/*.d.ts",
"import": "./dist/runtime/components/*"
},
"./dist/runtime/components/*": {
"types": "./dist/runtime/components/*.d.ts",
"import": "./dist/runtime/components/*"
},
"./runtime/*": {
"types": "./dist/runtime/*.d.ts",
"import": "./dist/runtime/*.mjs"
Expand Down

0 comments on commit eacac48

Please sign in to comment.