From 8807694e3d3af144cf0ea899113374c183701736 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 20 Dec 2023 10:07:45 +0800 Subject: [PATCH] chore: update pkg.json --- package.json | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 8bf7611..ab40016 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,12 @@ "url": "https://github.com/zyyv/unplugin-unocss-config/issues" }, "keywords": [ + "unpreset", + "unocss", + "unocss-config", "unplugin", "vite", - "webpack", - "rollup", - "transform", - "unocss", - "unpreset" + "nuxt-module" ], "exports": { ".": { @@ -35,21 +34,6 @@ "import": "./dist/vite.js", "require": "./dist/vite.cjs" }, - "./webpack": { - "types": "./dist/webpack.d.ts", - "import": "./dist/webpack.js", - "require": "./dist/webpack.cjs" - }, - "./rollup": { - "types": "./dist/rollup.d.ts", - "import": "./dist/rollup.js", - "require": "./dist/rollup.cjs" - }, - "./esbuild": { - "types": "./dist/esbuild.d.ts", - "import": "./dist/esbuild.js", - "require": "./dist/esbuild.cjs" - }, "./nuxt": { "types": "./dist/nuxt.d.ts", "import": "./dist/nuxt.js", @@ -65,6 +49,14 @@ "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", + "typesVersions": { + "*": { + "*": [ + "./dist/*", + "./*" + ] + } + }, "files": [ "client.d.ts", "dist" @@ -77,11 +69,23 @@ "play": "pnpm -C playground run dev", "prepublishOnly": "pnpm run build", "release": "bumpp && pnpm publish", - "start": "esno src/index.ts", - "test": "vitest" + "start": "esno src/index.ts" }, "peerDependencies": { - "vite": "^2.0.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0" + "@nuxt/kit": "^3", + "@nuxt/schema": "^3", + "vite": ">=3" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "@nuxt/schema": { + "optional": true + }, + "vite": { + "optional": true + } }, "dependencies": { "unplugin": "^1.5.1"