File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang='ts'>
2
- import { FormKitDataEdit } from ' @sfxcode/formkit-primevue/components'
3
-
4
2
const { addElement, addList, addListGroup } = useFormKitSchema ()
5
3
const { addListGroupFunctions, addGroupButtons, addInsertButton } = useFormKitRepeater ()
6
4
const { t } = useI18n ()
Original file line number Diff line number Diff line change 3
3
addPlugin ,
4
4
createResolver ,
5
5
installModule ,
6
- addImports ,
6
+ addImports , addComponent ,
7
7
} from '@nuxt/kit'
8
8
import defu from 'defu'
9
9
@@ -65,8 +65,24 @@ export default defineNuxtModule<ModuleOptions>({
65
65
'useInputEditorSchema' ,
66
66
]
67
67
68
+ const NPM_PCK_FORMKIT_PRIMEVUE = '@sfxcode/formkit-primevue'
69
+
68
70
names . forEach ( name =>
69
- addImports ( { name, as : name , from : '@sfxcode/formkit-primevue' } ) ,
71
+ addImports ( { name, as : name , from : NPM_PCK_FORMKIT_PRIMEVUE } ) ,
72
+ )
73
+
74
+ const componentNames = [
75
+ 'FormKitDataEdit' ,
76
+ 'FormKitDataView' ,
77
+ 'FormKitDataDebug' ,
78
+ ]
79
+
80
+ componentNames . forEach ( name =>
81
+ addComponent ( {
82
+ name,
83
+ export : name ,
84
+ filePath : NPM_PCK_FORMKIT_PRIMEVUE ,
85
+ } ) ,
70
86
)
71
87
72
88
// Do not add the extension since the `.ts` will be transpiled to `.mjs` after `npm run prepack`
You can’t perform that action at this time.
0 commit comments