mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(deps): update nuxt framework to v3.13.2 (dev) (#2119)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"date-fns": "^3.6.0",
|
||||
"eslint": "^8.57.0",
|
||||
"joi": "^17.13.3",
|
||||
"nuxt": "^3.13.0",
|
||||
"nuxt": "^3.13.2",
|
||||
"nuxt-cloudflare-analytics": "^1.0.8",
|
||||
"nuxt-component-meta": "^0.8.2",
|
||||
"nuxt-og-image": "^3.0.2",
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"@headlessui/vue": "^1.7.23",
|
||||
"@iconify-json/heroicons": "^1.2.0",
|
||||
"@nuxt/icon": "^1.5.1",
|
||||
"@nuxt/kit": "^3.13.0",
|
||||
"@nuxt/kit": "^3.13.2",
|
||||
"@nuxtjs/color-mode": "^3.5.1",
|
||||
"@nuxtjs/tailwindcss": "^6.12.1",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
@@ -57,13 +57,13 @@
|
||||
"devDependencies": {
|
||||
"@nuxt/eslint-config": "^0.4.0",
|
||||
"@nuxt/module-builder": "^0.8.4",
|
||||
"@nuxt/test-utils": "^3.14.1",
|
||||
"@nuxt/test-utils": "^3.14.2",
|
||||
"@release-it/conventional-changelog": "^8.0.2",
|
||||
"@vue/test-utils": "^2.4.6",
|
||||
"eslint": "^8.57.0",
|
||||
"happy-dom": "^14.12.3",
|
||||
"joi": "^17.13.3",
|
||||
"nuxt": "^3.13.0",
|
||||
"nuxt": "^3.13.2",
|
||||
"release-it": "^17.6.0",
|
||||
"unbuild": "^2.0.0",
|
||||
"valibot": "^0.42.0",
|
||||
@@ -77,7 +77,6 @@
|
||||
},
|
||||
"resolutions": {
|
||||
"@nuxt/ui": "workspace:*",
|
||||
"@nuxt/kit": "3.13.0",
|
||||
"@nuxt/schema": "3.13.0"
|
||||
"@nuxtjs/mdc": "0.9.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@nuxt/ui": "latest",
|
||||
"nuxt": "^3.13.0"
|
||||
"nuxt": "^3.13.2"
|
||||
}
|
||||
}
|
||||
|
||||
2523
pnpm-lock.yaml
generated
2523
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,6 @@
|
||||
import { join } from 'pathe'
|
||||
import { defu } from 'defu'
|
||||
import { addTemplate, createResolver, installModule, useNuxt } from '@nuxt/kit'
|
||||
|
||||
import { setGlobalColors } from './runtime/utils/colors'
|
||||
import type { ModuleOptions } from './module'
|
||||
|
||||
@@ -13,12 +12,10 @@ export default async function installTailwind (
|
||||
const runtimeDir = resolve('./runtime')
|
||||
|
||||
// 1. register hook
|
||||
// @ts-ignore
|
||||
nuxt.hook('tailwindcss:config', function (tailwindConfig) {
|
||||
tailwindConfig.theme = tailwindConfig.theme || {}
|
||||
tailwindConfig.theme.extend = tailwindConfig.theme.extend || {}
|
||||
tailwindConfig.theme.extend.colors =
|
||||
tailwindConfig.theme.extend.colors || {}
|
||||
tailwindConfig.theme.extend.colors = tailwindConfig.theme.extend.colors || {}
|
||||
|
||||
const colors = setGlobalColors(tailwindConfig.theme)
|
||||
|
||||
@@ -73,7 +70,6 @@ export default async function installTailwind (
|
||||
`
|
||||
})
|
||||
|
||||
// @ts-expect-error - `@nuxtjs/tailwindcss` not installed yet
|
||||
const { configPath: userTwConfigPath = [], ...twModuleConfig } = nuxt.options.tailwindcss ?? {}
|
||||
|
||||
const twConfigPaths = [
|
||||
@@ -90,7 +86,9 @@ export default async function installTailwind (
|
||||
// 3. install module
|
||||
await installModule('@nuxtjs/tailwindcss', defu({
|
||||
exposeConfig: true,
|
||||
config: { darkMode: 'class' },
|
||||
config: {
|
||||
darkMode: 'class' as const
|
||||
},
|
||||
configPath: twConfigPaths
|
||||
}, twModuleConfig))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user