Skip to content

Commit

Permalink
fix(katzencore): Normalized Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlkatze committed Jul 23, 2024
1 parent 1eecd3d commit 0e4ce5c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default defineNuxtModule<ModuleOptions>({
addPlugin(resolve('./runtime/plugins/chtml.plugin'))

addLayout({
src: resolve('runtime/layouts/cmsLayout.vue'),
src: resolve('./runtime/layouts/cmsLayout.vue'),
}, 'cms-layout')

// ADD BACKEND CMS PAGE
Expand All @@ -81,12 +81,12 @@ export default defineNuxtModule<ModuleOptions>({
{
name: 'katze-cms',
path: '/cms',
file: resolve('runtime/pages/KatzeCms.vue'),
file: resolve('./runtime/pages/KatzeCms.vue'),
},
{
name: 'katze-cms-login',
path: '/katze-login',
file: resolve('runtime/pages/KatzeLogin.vue'),
file: resolve('./runtime/pages/KatzeLogin.vue'),
},
]
pages.push(...pageList)
Expand Down Expand Up @@ -138,17 +138,17 @@ export default defineNuxtModule<ModuleOptions>({

// ADD FRONTEND COMPONENTS
await addComponentsDir({
path: resolve('runtime/components/ui'),
path: resolve('./runtime/components/ui'),
})
},
})

const addImports = async () => {
const { resolve } = createResolver(import.meta.url)
addImportsDir(resolve('runtime/composables'))
addImportsDir(resolve('runtime/components'))
addImportsDir(resolve('runtime/stores'))
addImportsDir(resolve('runtime/middleware'))
addImportsDir(resolve('./runtime/composables'))
addImportsDir(resolve('./runtime/components'))
addImportsDir(resolve('./runtime/stores'))
addImportsDir(resolve('./runtime/middleware'))
}

const installModules = async () => {
Expand Down

0 comments on commit 0e4ce5c

Please sign in to comment.