Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 12, 2024
1 parent 82e970b commit 7428bcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ export default defineNuxtModule<ModuleOptions>({
nitroConfig.bundledStorage = nitroConfig.bundledStorage || []
nitroConfig.bundledStorage.push('/cache/content')

// @ts-ignore

Check failure on line 510 in src/module.ts

View workflow job for this annotation

GitHub Actions / ubuntu

Use "@ts-expect-error" to ensure an error is actually being suppressed
nitroConfig.externals = defu(typeof nitroConfig.externals === 'object' ? nitroConfig.externals : {}, {
inline: [
// Inline module runtime in Nitro bundle
Expand Down Expand Up @@ -759,6 +760,7 @@ export default defineNuxtModule<ModuleOptions>({
])
}

// @ts-ignore

Check failure on line 763 in src/module.ts

View workflow job for this annotation

GitHub Actions / ubuntu

Use "@ts-expect-error" to ensure an error is actually being suppressed
await nuxt.callHook('content:context', contentContext)

contentContext.defaultLocale = contentContext.defaultLocale || contentContext.locales[0]
Expand Down Expand Up @@ -844,7 +846,7 @@ export default defineNuxtModule<ModuleOptions>({
})

// @nuxtjs/tailwindcss support
// @ts-expect-error - Module might not exist
// @ts-ignore - Module might not exist

Check failure on line 849 in src/module.ts

View workflow job for this annotation

GitHub Actions / ubuntu

Use "@ts-expect-error" to ensure an error is actually being suppressed
nuxt.hook('tailwindcss:config', async (tailwindConfig) => {
const contentPath = resolve(nuxt.options.buildDir, 'content-cache', 'parsed/**/*.{md,yml,yaml,json}')
tailwindConfig.content = tailwindConfig.content ?? []
Expand All @@ -856,7 +858,7 @@ export default defineNuxtModule<ModuleOptions>({
tailwindConfig.content.files.push(contentPath)
}

// @ts-expect-error
// @ts-ignore

Check failure on line 861 in src/module.ts

View workflow job for this annotation

GitHub Actions / ubuntu

Use "@ts-expect-error" to ensure an error is actually being suppressed
const [tailwindCssPath] = Array.isArray(nuxt.options.tailwindcss?.cssPath) ? nuxt.options.tailwindcss.cssPath : [nuxt.options.tailwindcss?.cssPath]
let cssPath = tailwindCssPath ? await resolvePath(tailwindCssPath, { extensions: ['.css', '.sass', '.scss', '.less', '.styl'] }) : join(nuxt.options.dir.assets, 'css/tailwind.css')
if (!fs.existsSync(cssPath)) {
Expand Down

0 comments on commit 7428bcf

Please sign in to comment.