Skip to content

Commit

Permalink
Merge pull request #64 from oktaysenkan/fix/peer-deps
Browse files Browse the repository at this point in the history
fix: update peer dependencies
  • Loading branch information
oktaysenkan authored Jan 14, 2025
2 parents a804a5f + 400aad8 commit 720f16c
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 33 deletions.
20 changes: 20 additions & 0 deletions .changeset/curvy-cameras-smile.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 4 additions & 2 deletions packages/esbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
MoniconOptions,
getResolveAlias,
} from "@monicon/core";
import { Plugin } from "esbuild";
import type { Plugin } from "esbuild";

const alias = getResolveAlias();

Expand Down
2 changes: 1 addition & 1 deletion packages/metro/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type IntermediateConfigT } from "metro-config";
import type { IntermediateConfigT } from "metro-config";
import {
loadIcons,
getIconsFilePath,
Expand Down
4 changes: 1 addition & 3 deletions packages/rspack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
},
"dependencies": {
"@monicon/core": "*",
"@monicon/webpack": "*",
"@rspack/core": "^1.0.8",
"radash": "^12.1.0"
"@monicon/webpack": "*"
}
}
6 changes: 4 additions & 2 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
43 changes: 20 additions & 23 deletions packages/vite/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin } from "vite";
import type { PluginOption } from "vite";
import {
loadIcons,
getIconsFilePath,
Expand All @@ -10,29 +10,26 @@ const alias = getResolveAlias();

const name = "vite-monicon";

export const monicon = async (options: MoniconOptions): Promise<Plugin[]> => [
{
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;
1 change: 0 additions & 1 deletion packages/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"typescript": "^5.3.3"
},
"dependencies": {
"radash": "^12.1.0",
"@monicon/core": "*"
}
}

0 comments on commit 720f16c

Please sign in to comment.