From f57c90a743b8ff3b1a83031e7bc45f73cfcd996b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kleszczy=C5=84ski?= Date: Mon, 19 Dec 2022 22:51:59 +0100 Subject: [PATCH] Fix invalid resolving --- nuxt.config.js | 54 ++++++++++++++++++++++++------------------------ vitest.config.js | 54 ++++++++++++++++++++++++------------------------ 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index c62964f60..04fec126a 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -65,33 +65,33 @@ export default defineNuxtConfig({ plugins: [vueJsx()], resolve: { alias: { - 'primevue/ripple': path.resolve(__dirname, '/components/ripple/Ripple.js'), - 'primevue/tooltip': path.resolve(__dirname, '/components/tooltip/Tooltip.js'), - 'primevue/focustrap': path.resolve(__dirname, '/components/focustrap/FocusTrap.js'), - 'primevue/useconfirm': path.resolve(__dirname, '/components/useconfirm/UseConfirm.js'), - 'primevue/usetoast': path.resolve(__dirname, '/components/usetoast/UseToast.js'), - 'primevue/usedialog': path.resolve(__dirname, '/components/usedialog/UseDialog.js'), - 'primevue/utils': path.resolve(__dirname, '/components/utils/Utils.js'), - 'primevue/api': path.resolve(__dirname, '/components/api/Api.js'), - 'primevue/portal': path.resolve(__dirname, '/components/portal/Portal.vue'), - 'primevue/button': path.resolve(__dirname, '/components/button/Button.vue'), - 'primevue/inputtext': path.resolve(__dirname, '/components/inputtext/InputText.vue'), - 'primevue/dialog': path.resolve(__dirname, '/components/dialog/Dialog.vue'), - 'primevue/menu': path.resolve(__dirname, '/components/menu/Menu.vue'), - 'primevue/tieredmenu': path.resolve(__dirname, '/components/tieredmenu/TieredMenu.vue'), - 'primevue/dropdown': path.resolve(__dirname, '/components/dropdown/Dropdown.vue'), - 'primevue/inputnumber': path.resolve(__dirname, '/components/inputnumber/InputNumber.vue'), - 'primevue/paginator': path.resolve(__dirname, '/components/paginator/Paginator.vue'), - 'primevue/progressbar': path.resolve(__dirname, '/components/progressbar/ProgressBar.vue'), - 'primevue/message': path.resolve(__dirname, '/components/message/Message.vue'), - 'primevue/tree': path.resolve(__dirname, '/components/tree/Tree.vue'), - 'primevue/badge': path.resolve(__dirname, '/components/badge/Badge.vue'), - 'primevue/confirmationeventbus': path.resolve(__dirname, '/components/confirmationeventbus/ConfirmationEventBus.js'), - 'primevue/toasteventbus': path.resolve(__dirname, '/components/toasteventbus/ToastEventBus.js'), - 'primevue/overlayeventbus': path.resolve(__dirname, '/components/overlayeventbus/OverlayEventBus.js'), - 'primevue/terminalservice': path.resolve(__dirname, '/components/terminalservice/TerminalService.js'), - 'primevue/dynamicdialogeventbus': path.resolve(__dirname, '/components/dynamicdialogeventbus/DynamicDialogEventBus.js'), - 'primevue/virtualscroller': path.resolve(__dirname, '/components/virtualscroller/VirtualScroller.vue') + 'primevue/ripple': path.resolve(__dirname, './components/ripple/Ripple.js'), + 'primevue/tooltip': path.resolve(__dirname, './components/tooltip/Tooltip.js'), + 'primevue/focustrap': path.resolve(__dirname, './components/focustrap/FocusTrap.js'), + 'primevue/useconfirm': path.resolve(__dirname, './components/useconfirm/UseConfirm.js'), + 'primevue/usetoast': path.resolve(__dirname, './components/usetoast/UseToast.js'), + 'primevue/usedialog': path.resolve(__dirname, './components/usedialog/UseDialog.js'), + 'primevue/utils': path.resolve(__dirname, './components/utils/Utils.js'), + 'primevue/api': path.resolve(__dirname, './components/api/Api.js'), + 'primevue/portal': path.resolve(__dirname, './components/portal/Portal.vue'), + 'primevue/button': path.resolve(__dirname, './components/button/Button.vue'), + 'primevue/inputtext': path.resolve(__dirname, './components/inputtext/InputText.vue'), + 'primevue/dialog': path.resolve(__dirname, './components/dialog/Dialog.vue'), + 'primevue/menu': path.resolve(__dirname, './components/menu/Menu.vue'), + 'primevue/tieredmenu': path.resolve(__dirname, './components/tieredmenu/TieredMenu.vue'), + 'primevue/dropdown': path.resolve(__dirname, './components/dropdown/Dropdown.vue'), + 'primevue/inputnumber': path.resolve(__dirname, './components/inputnumber/InputNumber.vue'), + 'primevue/paginator': path.resolve(__dirname, './components/paginator/Paginator.vue'), + 'primevue/progressbar': path.resolve(__dirname, './components/progressbar/ProgressBar.vue'), + 'primevue/message': path.resolve(__dirname, './components/message/Message.vue'), + 'primevue/tree': path.resolve(__dirname, './components/tree/Tree.vue'), + 'primevue/badge': path.resolve(__dirname, './components/badge/Badge.vue'), + 'primevue/confirmationeventbus': path.resolve(__dirname, './components/confirmationeventbus/ConfirmationEventBus.js'), + 'primevue/toasteventbus': path.resolve(__dirname, './components/toasteventbus/ToastEventBus.js'), + 'primevue/overlayeventbus': path.resolve(__dirname, './components/overlayeventbus/OverlayEventBus.js'), + 'primevue/terminalservice': path.resolve(__dirname, './components/terminalservice/TerminalService.js'), + 'primevue/dynamicdialogeventbus': path.resolve(__dirname, './components/dynamicdialogeventbus/DynamicDialogEventBus.js'), + 'primevue/virtualscroller': path.resolve(__dirname, './components/virtualscroller/VirtualScroller.vue') } } } diff --git a/vitest.config.js b/vitest.config.js index 4c099c9ea..896738373 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -9,33 +9,33 @@ export default { }, resolve: { alias: { - 'primevue/config': path.resolve(__dirname, '/components/config/PrimeVue.js'), - 'primevue/ripple': path.resolve(__dirname, '/components/ripple/Ripple.js'), - 'primevue/tooltip': path.resolve(__dirname, '/components/tooltip/Tooltip.js'), - 'primevue/focustrap': path.resolve(__dirname, '/components/focustrap/FocusTrap.js'), - 'primevue/useconfirm': path.resolve(__dirname, '/components/useconfirm/UseConfirm.js'), - 'primevue/usetoast': path.resolve(__dirname, '/components/usetoast/UseToast.js'), - 'primevue/usedialog': path.resolve(__dirname, '/components/usedialog/UseDialog.js'), - 'primevue/utils': path.resolve(__dirname, '/components/utils/Utils.js'), - 'primevue/api': path.resolve(__dirname, '/components/api/Api.js'), - 'primevue/portal': path.resolve(__dirname, '/components/portal/Portal.vue'), - 'primevue/button': path.resolve(__dirname, '/components/button/Button.vue'), - 'primevue/inputtext': path.resolve(__dirname, '/components/inputtext/InputText.vue'), - 'primevue/dialog': path.resolve(__dirname, '/components/dialog/Dialog.vue'), - 'primevue/menu': path.resolve(__dirname, '/components/menu/Menu.vue'), - 'primevue/tieredmenu': path.resolve(__dirname, '/components/tieredmenu/TieredMenu.vue'), - 'primevue/dropdown': path.resolve(__dirname, '/components/dropdown/Dropdown.vue'), - 'primevue/inputnumber': path.resolve(__dirname, '/components/inputnumber/InputNumber.vue'), - 'primevue/paginator': path.resolve(__dirname, '/components/paginator/Paginator.vue'), - 'primevue/progressbar': path.resolve(__dirname, '/components/progressbar/ProgressBar.vue'), - 'primevue/message': path.resolve(__dirname, '/components/message/Message.vue'), - 'primevue/tree': path.resolve(__dirname, '/components/tree/Tree.vue'), - 'primevue/confirmationeventbus': path.resolve(__dirname, '/components/confirmationeventbus/ConfirmationEventBus.js'), - 'primevue/toasteventbus': path.resolve(__dirname, '/components/toasteventbus/ToastEventBus.js'), - 'primevue/overlayeventbus': path.resolve(__dirname, '/components/overlayeventbus/OverlayEventBus.js'), - 'primevue/terminalservice': path.resolve(__dirname, '/components/terminalservice/TerminalService.js'), - 'primevue/dynamicdialogeventbus': path.resolve(__dirname, '/components/dynamicdialogeventbus/DynamicDialogEventBus.js'), - 'primevue/virtualscroller': path.resolve(__dirname, '/components/virtualscroller/VirtualScroller.vue') + 'primevue/config': path.resolve(__dirname, './components/config/PrimeVue.js'), + 'primevue/ripple': path.resolve(__dirname, './components/ripple/Ripple.js'), + 'primevue/tooltip': path.resolve(__dirname, './components/tooltip/Tooltip.js'), + 'primevue/focustrap': path.resolve(__dirname, './components/focustrap/FocusTrap.js'), + 'primevue/useconfirm': path.resolve(__dirname, './components/useconfirm/UseConfirm.js'), + 'primevue/usetoast': path.resolve(__dirname, './components/usetoast/UseToast.js'), + 'primevue/usedialog': path.resolve(__dirname, './components/usedialog/UseDialog.js'), + 'primevue/utils': path.resolve(__dirname, './components/utils/Utils.js'), + 'primevue/api': path.resolve(__dirname, './components/api/Api.js'), + 'primevue/portal': path.resolve(__dirname, './components/portal/Portal.vue'), + 'primevue/button': path.resolve(__dirname, './components/button/Button.vue'), + 'primevue/inputtext': path.resolve(__dirname, './components/inputtext/InputText.vue'), + 'primevue/dialog': path.resolve(__dirname, './components/dialog/Dialog.vue'), + 'primevue/menu': path.resolve(__dirname, './components/menu/Menu.vue'), + 'primevue/tieredmenu': path.resolve(__dirname, './components/tieredmenu/TieredMenu.vue'), + 'primevue/dropdown': path.resolve(__dirname, './components/dropdown/Dropdown.vue'), + 'primevue/inputnumber': path.resolve(__dirname, './components/inputnumber/InputNumber.vue'), + 'primevue/paginator': path.resolve(__dirname, './components/paginator/Paginator.vue'), + 'primevue/progressbar': path.resolve(__dirname, './components/progressbar/ProgressBar.vue'), + 'primevue/message': path.resolve(__dirname, './components/message/Message.vue'), + 'primevue/tree': path.resolve(__dirname, './components/tree/Tree.vue'), + 'primevue/confirmationeventbus': path.resolve(__dirname, './components/confirmationeventbus/ConfirmationEventBus.js'), + 'primevue/toasteventbus': path.resolve(__dirname, './components/toasteventbus/ToastEventBus.js'), + 'primevue/overlayeventbus': path.resolve(__dirname, './components/overlayeventbus/OverlayEventBus.js'), + 'primevue/terminalservice': path.resolve(__dirname, './components/terminalservice/TerminalService.js'), + 'primevue/dynamicdialogeventbus': path.resolve(__dirname, './components/dynamicdialogeventbus/DynamicDialogEventBus.js'), + 'primevue/virtualscroller': path.resolve(__dirname, './components/virtualscroller/VirtualScroller.vue') } } };