From d79895a9fc363aa1fa312bdecd50bd6f65ec35e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oktay=20=C5=9Eenkan?= Date: Tue, 14 Jan 2025 03:24:24 +0300 Subject: [PATCH 1/2] fix: update peer dependencies --- packages/esbuild/package.json | 6 +++-- packages/esbuild/src/index.ts | 2 +- packages/metro/src/index.ts | 2 +- packages/rspack/package.json | 4 +--- packages/vite/package.json | 6 +++-- packages/vite/src/index.ts | 43 ++++++++++++++++------------------- packages/webpack/package.json | 1 - 7 files changed, 31 insertions(+), 33 deletions(-) diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 6bb66aa..d27c3d6 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -21,11 +21,13 @@ "dev": "tsup --watch", "clean": "rm -rf dist" }, + "peerDependencies": { + "esbuild": "^0.17.0" + }, "devDependencies": { "@monicon/typescript-config": "*", "tsup": "^8.0.1", - "typescript": "^5.3.3", - "vite": "^6.0.2" + "typescript": "^5.3.3" }, "dependencies": { "@monicon/core": "*" diff --git a/packages/esbuild/src/index.ts b/packages/esbuild/src/index.ts index 3162240..63a9e71 100644 --- a/packages/esbuild/src/index.ts +++ b/packages/esbuild/src/index.ts @@ -4,7 +4,7 @@ import { MoniconOptions, getResolveAlias, } from "@monicon/core"; -import { Plugin } from "esbuild"; +import type { Plugin } from "esbuild"; const alias = getResolveAlias(); diff --git a/packages/metro/src/index.ts b/packages/metro/src/index.ts index 585b627..885ba04 100644 --- a/packages/metro/src/index.ts +++ b/packages/metro/src/index.ts @@ -1,4 +1,4 @@ -import { type IntermediateConfigT } from "metro-config"; +import type { IntermediateConfigT } from "metro-config"; import { loadIcons, getIconsFilePath, diff --git a/packages/rspack/package.json b/packages/rspack/package.json index abb7aea..18192cf 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -28,8 +28,6 @@ }, "dependencies": { "@monicon/core": "*", - "@monicon/webpack": "*", - "@rspack/core": "^1.0.8", - "radash": "^12.1.0" + "@monicon/webpack": "*" } } diff --git a/packages/vite/package.json b/packages/vite/package.json index 018c33e..aeec380 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -21,13 +21,15 @@ "dev": "tsup --watch", "clean": "rm -rf dist" }, + "peerDependencies": { + "vite": "^4.0.0-0 || ^5.0.0-0 || ^6.0.0-0" + }, "devDependencies": { "@monicon/typescript-config": "1.2.0", "tsup": "^8.0.1", "typescript": "^5.3.3" }, "dependencies": { - "@monicon/core": "1.2.0", - "vite": "^6.0.2" + "@monicon/core": "1.2.0" } } diff --git a/packages/vite/src/index.ts b/packages/vite/src/index.ts index 6d247ae..9943d3a 100644 --- a/packages/vite/src/index.ts +++ b/packages/vite/src/index.ts @@ -1,4 +1,4 @@ -import { Plugin } from "vite"; +import type { PluginOption } from "vite"; import { loadIcons, getIconsFilePath, @@ -10,29 +10,26 @@ const alias = getResolveAlias(); const name = "vite-monicon"; -export const monicon = async (options: MoniconOptions): Promise => [ - { - name, - async buildStart() { - await loadIcons({ type: "esm", ...options }); - }, - async resolveId(source) { - if (source === alias) - return getIconsFilePath({ type: "esm", ...options }); +export const monicon = (options: MoniconOptions): PluginOption => ({ + name, + async buildStart() { + await loadIcons({ type: "esm", ...options }); + }, + async resolveId(source) { + if (source === alias) return getIconsFilePath({ type: "esm", ...options }); - return null; - }, - config: () => ({ - server: { - fs: { - allow: [".."], - }, - }, - optimizeDeps: { - exclude: [alias], - }, - }), + return null; }, -]; + config: () => ({ + server: { + fs: { + allow: [".."], + }, + }, + optimizeDeps: { + exclude: [alias], + }, + }), +}); export default monicon; diff --git a/packages/webpack/package.json b/packages/webpack/package.json index f01bfef..cf48811 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -27,7 +27,6 @@ "typescript": "^5.3.3" }, "dependencies": { - "radash": "^12.1.0", "@monicon/core": "*" } } From 400aad80bad14d7fd4901a747dd34eedd65afc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oktay=20=C5=9Eenkan?= Date: Tue, 14 Jan 2025 03:25:16 +0300 Subject: [PATCH 2/2] docs: add release notes --- .changeset/curvy-cameras-smile.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .changeset/curvy-cameras-smile.md diff --git a/.changeset/curvy-cameras-smile.md b/.changeset/curvy-cameras-smile.md new file mode 100644 index 0000000..49a7eeb --- /dev/null +++ b/.changeset/curvy-cameras-smile.md @@ -0,0 +1,20 @@ +--- +"@monicon/esbuild": patch +"@monicon/webpack": patch +"@monicon/rspack": patch +"@monicon/metro": patch +"@monicon/vite": patch +"@monicon/core": patch +"@monicon/icon-loader": patch +"@monicon/loader": patch +"@monicon/native": patch +"@monicon/nuxt": patch +"@monicon/qwik": patch +"@monicon/react": patch +"@monicon/rollup": patch +"@monicon/svelte": patch +"@monicon/typescript-config": patch +"@monicon/vue": patch +--- + +fix: update peer dependencies