From 8b4823fe0adfff5b20fd3c185cd3f9bdeec85e1c Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 2 Dec 2024 23:17:24 +0800 Subject: [PATCH] chore: update --- package.json | 1 - pnpm-lock.yaml | 3 --- src/index.ts | 5 ++--- tests/index.test.ts | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 22703df..84c196c 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,6 @@ "@babel/types": "^7.26.0", "@types/node": "^22.10.1", "@unocss/eslint-plugin": "0.65.0", - "@unocss/preset-mini": "0.65.0", "@vitejs/plugin-vue": "^5.2.1", "bumpp": "^9.8.1", "eslint": "^9.16.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3ea0413..9d398be 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,6 @@ importers: '@unocss/eslint-plugin': specifier: 0.65.0 version: 0.65.0(eslint@9.16.0(jiti@2.4.1))(typescript@5.7.2) - '@unocss/preset-mini': - specifier: 0.65.0 - version: 0.65.0 '@vitejs/plugin-vue': specifier: ^5.2.1 version: 5.2.1(vite@6.0.2(@types/node@22.10.1)(jiti@2.4.1)(tsx@4.19.2)(yaml@2.6.1))(vue@3.5.13(typescript@5.7.2)) diff --git a/src/index.ts b/src/index.ts index 9fda1ce..c134e4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,6 @@ -import type { Theme } from '@unocss/preset-mini' import { definePreset } from 'unocss' -export const presetMagicss = definePreset(() => { +export const presetMagicss = definePreset(() => { const property = { 'animation-fill-mode': 'both' } return { @@ -210,6 +209,6 @@ export const presetMagicss = definePreset(() => { 'tin-up-out': 'Tin', }, }, - } as Theme, + }, } }) diff --git a/tests/index.test.ts b/tests/index.test.ts index 00d4500..4e8622a 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -5,7 +5,7 @@ import { presetMagicss } from '../src' it('presetStarter', async () => { const uno = await createGenerator({ presets: [ - presetUno({ preflight: 'on-demand' }), + presetUno({ preflight: 'on-demand' }) as any, presetMagicss(), ], })