From 54aa892bf092db89d401b67128bfb9f4c5deddfc Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 2 Apr 2024 16:03:46 +0200 Subject: [PATCH] chore(module): update `addTemplates` export --- src/module.ts | 2 +- src/templates.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index dbee6773..87c14ed0 100644 --- a/src/module.ts +++ b/src/module.ts @@ -1,7 +1,7 @@ import { defu } from 'defu' import { createResolver, defineNuxtModule, addComponentsDir, addImportsDir, addVitePlugin, addPlugin, installModule } from '@nuxt/kit' import tailwindcss from '@tailwindcss/vite' -import addTemplates from './templates' +import { addTemplates } from './templates' import icons from './theme/icons' export interface ModuleOptions { diff --git a/src/templates.ts b/src/templates.ts index 69db9a67..ca498f5c 100644 --- a/src/templates.ts +++ b/src/templates.ts @@ -3,7 +3,7 @@ import type { Nuxt } from '@nuxt/schema' import type { ModuleOptions } from './module' import * as theme from './theme' -export default function createTemplates (options: ModuleOptions, nuxt: Nuxt) { +export function addTemplates (options: ModuleOptions, nuxt: Nuxt) { const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950] const template = addTemplate({