diff --git a/.changeset/config.json b/.changeset/config.json
index 3cd2276..b5dfedd 100644
--- a/.changeset/config.json
+++ b/.changeset/config.json
@@ -20,6 +20,7 @@
"@monicon/vite-react",
"@monicon/vite-vue",
"@monicon/svelte-app",
+ "@monicon/qwik-app",
"@monicon/docs"
]
}
diff --git a/.gitignore b/.gitignore
index f664cb1..254b287 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,6 @@ yarn-error.log*
# turbo
.turbo
+
+# monicon
+.monicon
\ No newline at end of file
diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md
deleted file mode 100644
index b8a6e12..0000000
--- a/apps/docs/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# @monicon/docs
-
-## 0.0.124
-
-### Patch Changes
-
-- add docs website
diff --git a/apps/docs/package.json b/apps/docs/package.json
index bf78cf5..7f76171 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/docs",
- "version": "0.0.143",
+ "version": "0.0.0",
"description": "Monicon Documentation",
"private": true,
"scripts": {
diff --git a/apps/docs/pages/installation/nextjs.mdx b/apps/docs/pages/installation/nextjs.mdx
index 729ddc2..395b6df 100644
--- a/apps/docs/pages/installation/nextjs.mdx
+++ b/apps/docs/pages/installation/nextjs.mdx
@@ -80,6 +80,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with Next.js! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/nuxt.mdx b/apps/docs/pages/installation/nuxt.mdx
index 7c5d12d..aa82426 100644
--- a/apps/docs/pages/installation/nuxt.mdx
+++ b/apps/docs/pages/installation/nuxt.mdx
@@ -63,6 +63,15 @@ You can now use Monicon in your Vue components. Here’s an example of how to us
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/qwik.mdx b/apps/docs/pages/installation/qwik.mdx
index c2122da..6002bee 100644
--- a/apps/docs/pages/installation/qwik.mdx
+++ b/apps/docs/pages/installation/qwik.mdx
@@ -74,6 +74,15 @@ export default component$(() => {
}
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with Qwik! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/react-native.mdx b/apps/docs/pages/installation/react-native.mdx
index 9025601..013a4f3 100644
--- a/apps/docs/pages/installation/react-native.mdx
+++ b/apps/docs/pages/installation/react-native.mdx
@@ -11,7 +11,7 @@ Setting up Monicon with React Native is a straightforward process. This guide wi
To get started, you’ll need to install the necessary dependencies for Monicon. In your project directory, run the following command to install the dependencies.
```sh npm2yarn
-npm i @monicon/native @monicon/metro @monicon/babel-plugin react-native-svg
+npm i @monicon/native @monicon/metro react-native-svg
# if you want react-native-web support
npm i @monicon/webpack
@@ -57,20 +57,6 @@ For a complete list of available icon sets, refer to the [Icones](https://icones
-## Configure Babel
-
-Now you’ll need to configure Babel.
-
-```ts filename="babel.config.js"
-module.exports = function (api) {
- api.cache(true);
- return {
- presets: ["babel-preset-expo"],
- plugins: [["@monicon/babel-plugin"]],
- };
-};
-```
-
## Configure Webpack (Optional)
If you are using Expo Router, skip this step.
@@ -142,6 +128,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with React Native! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/react-rollup.mdx b/apps/docs/pages/installation/react-rollup.mdx
index c9b5a22..45c2157 100644
--- a/apps/docs/pages/installation/react-rollup.mdx
+++ b/apps/docs/pages/installation/react-rollup.mdx
@@ -74,6 +74,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with React and Rollup! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/react-rspack.mdx b/apps/docs/pages/installation/react-rspack.mdx
index 2417c2c..3eb94bc 100644
--- a/apps/docs/pages/installation/react-rspack.mdx
+++ b/apps/docs/pages/installation/react-rspack.mdx
@@ -75,6 +75,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with React and Rspack! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/react-webpack.mdx b/apps/docs/pages/installation/react-webpack.mdx
index 0ac4a14..4d2f4e0 100644
--- a/apps/docs/pages/installation/react-webpack.mdx
+++ b/apps/docs/pages/installation/react-webpack.mdx
@@ -72,6 +72,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with React and Webpack! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/react.mdx b/apps/docs/pages/installation/react.mdx
index 1de7f7a..284c6d1 100644
--- a/apps/docs/pages/installation/react.mdx
+++ b/apps/docs/pages/installation/react.mdx
@@ -77,6 +77,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with React and Vite! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/remix.mdx b/apps/docs/pages/installation/remix.mdx
index 8ceae09..51a9d86 100644
--- a/apps/docs/pages/installation/remix.mdx
+++ b/apps/docs/pages/installation/remix.mdx
@@ -77,6 +77,15 @@ function App() {
export default App;
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with Remix! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/svelte.mdx b/apps/docs/pages/installation/svelte.mdx
index 17b354c..b35a9c8 100644
--- a/apps/docs/pages/installation/svelte.mdx
+++ b/apps/docs/pages/installation/svelte.mdx
@@ -73,6 +73,15 @@ You can now use Monicon in your Svelte components. Here’s an example of how to
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon with Svelte! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/pages/installation/vue.mdx b/apps/docs/pages/installation/vue.mdx
index ad5b1d2..00c69ff 100644
--- a/apps/docs/pages/installation/vue.mdx
+++ b/apps/docs/pages/installation/vue.mdx
@@ -85,6 +85,15 @@ import { Monicon } from "@monicon/vue";
```
+## Configure .gitignore
+
+Add the following to your `.gitignore` file to prevent icons from being committed to your repository.
+
+```
+# monicon
+.monicon
+```
+
## Next Steps
You’ve successfully set up Monicon! You can now explore more icon sets and customize your usage further.
diff --git a/apps/docs/public/sitemap-0.xml b/apps/docs/public/sitemap-0.xml
index 95241a7..f93f210 100644
--- a/apps/docs/public/sitemap-0.xml
+++ b/apps/docs/public/sitemap-0.xml
@@ -1,17 +1,22 @@
-https://monicon-docs.vercel.app2024-11-16T16:35:45.476Zdaily0.7
-https://monicon-docs.vercel.app/installation/nextjs2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/nuxt2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/qwik2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/react2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/react-native2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/react-rollup2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/react-rspack2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/remix2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/svelte2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/installation/vue2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/troubleshooting/bundle-size2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/troubleshooting/module-resolution2024-11-16T16:35:45.477Zdaily0.7
-https://monicon-docs.vercel.app/troubleshooting/monorepo2024-11-16T16:35:45.477Zdaily0.7
+https://monicon-docs.vercel.app2024-12-30T01:25:42.918Zdaily0.7
+https://monicon-docs.vercel.app/customization/custom-loader2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/customization/json-collections2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/customization/local-collections2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/customization/remote-collections2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/nextjs2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/nuxt2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/qwik2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/react2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/react-native2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/react-rollup2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/react-rspack2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/react-webpack2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/remix2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/svelte2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/installation/vue2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/troubleshooting/bundle-size2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/troubleshooting/module-resolution2024-12-30T01:25:42.919Zdaily0.7
+https://monicon-docs.vercel.app/troubleshooting/monorepo2024-12-30T01:25:42.919Zdaily0.7
\ No newline at end of file
diff --git a/apps/next/package.json b/apps/next/package.json
index 246aac2..c15ddf6 100644
--- a/apps/next/package.json
+++ b/apps/next/package.json
@@ -9,15 +9,15 @@
"lint": "next lint"
},
"dependencies": {
- "@monicon/react": "*",
+ "@monicon/react": "1.1.1",
"next": "^14.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native-web": "^0.19.10"
},
"devDependencies": {
- "@monicon/typescript-config": "*",
- "@monicon/webpack": "*",
+ "@monicon/typescript-config": "1.1.1",
+ "@monicon/webpack": "1.1.1",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
diff --git a/apps/nuxt-app/package.json b/apps/nuxt-app/package.json
index d3af372..af2b18c 100644
--- a/apps/nuxt-app/package.json
+++ b/apps/nuxt-app/package.json
@@ -12,7 +12,7 @@
"postinstall": "turbo run build --filter='@monicon/nuxt' && nuxt prepare"
},
"dependencies": {
- "@monicon/nuxt": "*"
+ "@monicon/nuxt": "1.1.1"
},
"devDependencies": {
"@nuxt/devtools": "latest",
@@ -21,6 +21,6 @@
"nuxt": "^3.13.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
- "@monicon/vue": "*"
+ "@monicon/vue": "1.1.1"
}
}
diff --git a/apps/qwik-app/CHANGELOG.md b/apps/qwik-app/CHANGELOG.md
deleted file mode 100644
index 27ef7cf..0000000
--- a/apps/qwik-app/CHANGELOG.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# @monicon/qwik-app
-
-## 1.1.0
-
-### Minor Changes
-
-- [#56](https://github.com/oktaysenkan/monicon/pull/56) [`82fb3b0`](https://github.com/oktaysenkan/monicon/commit/82fb3b09cbfa74cce0d59ea7999bc87936059de3) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - feat(svelte): add svelte 5 support (#55)
-
-## 1.0.0
-
-### Major Changes
-
-- [#52](https://github.com/oktaysenkan/monicon/pull/52) [`05ae5f5`](https://github.com/oktaysenkan/monicon/commit/05ae5f59e76be1b91bcba22b62e2b928d179c217) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - stable release
-
-## 0.0.153
-
-### Patch Changes
-
-- [#49](https://github.com/oktaysenkan/monicon/pull/49) [`3d99a2a`](https://github.com/oktaysenkan/monicon/commit/3d99a2a84c01c9b6e52da955a7915791ee4c6aca) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - implement custom loaders
-
-## 0.0.152
-
-### Patch Changes
-
-- [#46](https://github.com/oktaysenkan/monicon/pull/46) [`bf84d7e`](https://github.com/oktaysenkan/monicon/commit/bf84d7edc2b9d4d197875437c663eae6f800e2c4) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - load icons synchronously
-
-## 0.0.151
-
-### Patch Changes
-
-- [#44](https://github.com/oktaysenkan/monicon/pull/44) [`da4bd96`](https://github.com/oktaysenkan/monicon/commit/da4bd969ed3af993d4d01ffb69cbad86cf32184f) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - update react peer dependencies
-
-## 0.0.150
-
-### Patch Changes
-
-- [#42](https://github.com/oktaysenkan/monicon/pull/42) [`7fcefdc`](https://github.com/oktaysenkan/monicon/commit/7fcefdcab57a20b7eb8464525aecea156705f97d) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - Qwik support added
diff --git a/apps/qwik-app/package.json b/apps/qwik-app/package.json
index 801e43b..c0ade2b 100644
--- a/apps/qwik-app/package.json
+++ b/apps/qwik-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/qwik-app",
- "version": "1.1.0",
+ "version": "0.0.0",
"description": "Blank project with routing included",
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
@@ -38,8 +38,8 @@
"eslint": "8.57.0",
"eslint-plugin-qwik": "^1.9.1",
"prettier": "3.3.3",
- "@monicon/vite": "*",
- "@monicon/qwik": "*",
+ "@monicon/vite": "1.1.1",
+ "@monicon/qwik": "1.1.1",
"typescript": "5.4.5",
"undici": "*",
"vite": "^6.0.2",
diff --git a/apps/react-native-app/babel.config.js b/apps/react-native-app/babel.config.js
index 803596b..49cab41 100644
--- a/apps/react-native-app/babel.config.js
+++ b/apps/react-native-app/babel.config.js
@@ -2,8 +2,6 @@ module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
- plugins: [
- ["@monicon/babel-plugin", { outputFileName: "react-native-app" }],
- ],
+ plugins: [],
};
};
diff --git a/apps/react-native-app/package.json b/apps/react-native-app/package.json
index 8f9e306..8c7a926 100644
--- a/apps/react-native-app/package.json
+++ b/apps/react-native-app/package.json
@@ -11,10 +11,9 @@
"eject": "expo eject"
},
"dependencies": {
- "@monicon/babel-plugin": "*",
- "@monicon/metro": "*",
- "@monicon/native": "*",
- "@monicon/webpack": "*",
+ "@monicon/metro": "1.1.1",
+ "@monicon/native": "1.1.1",
+ "@monicon/webpack": "1.1.1",
"expo": "^49.0.21",
"expo-status-bar": "~1.7.0",
"react": "^18.2.0",
diff --git a/apps/react-native-app/webpack.config.js b/apps/react-native-app/webpack.config.js
index 70f5a29..334fa3b 100644
--- a/apps/react-native-app/webpack.config.js
+++ b/apps/react-native-app/webpack.config.js
@@ -17,7 +17,7 @@ module.exports = async function (env, argv) {
"icon-park-outline:arrow-circle-right",
],
collections: ["lucide"],
- outputFileName: "react-native-app",
+ outputFileName: "react-native-web-app",
})
);
diff --git a/apps/remix/package.json b/apps/remix/package.json
index 0e229a2..41589d7 100644
--- a/apps/remix/package.json
+++ b/apps/remix/package.json
@@ -12,8 +12,8 @@
"typecheck": "tsc"
},
"dependencies": {
- "@monicon/react": "^1.1.0",
- "@monicon/vite": "^1.1.0",
+ "@monicon/react": "^1.1.1",
+ "@monicon/vite": "^1.1.1",
"@remix-run/node": "^2.12.1",
"@remix-run/react": "^2.12.1",
"@remix-run/serve": "^2.12.1",
diff --git a/apps/rollup-react/package.json b/apps/rollup-react/package.json
index 209669f..6dae44e 100644
--- a/apps/rollup-react/package.json
+++ b/apps/rollup-react/package.json
@@ -9,14 +9,14 @@
"dev": "rollup -c --watch"
},
"dependencies": {
- "@monicon/react": "*",
+ "@monicon/react": "1.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@babel/preset-env": "^7.25.7",
"@babel/preset-react": "^7.25.7",
- "@monicon/rollup": "*",
+ "@monicon/rollup": "1.1.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^15.3.0",
diff --git a/apps/rspack-react/package.json b/apps/rspack-react/package.json
index d7d5597..6a85ca1 100644
--- a/apps/rspack-react/package.json
+++ b/apps/rspack-react/package.json
@@ -9,7 +9,7 @@
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
- "@monicon/react": "*"
+ "@monicon/react": "1.1.1"
},
"devDependencies": {
"@rspack/plugin-react-refresh": "1.0.0",
@@ -19,6 +19,6 @@
"@types/react-dom": "^18.2.18",
"cross-env": "^7.0.3",
"react-refresh": "^0.14.0",
- "@monicon/rspack": "*"
+ "@monicon/rspack": "1.1.1"
}
}
diff --git a/apps/svelte-app/package.json b/apps/svelte-app/package.json
index ebfdb57..b08b37c 100644
--- a/apps/svelte-app/package.json
+++ b/apps/svelte-app/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/svelte-app",
- "version": "1.0.0",
+ "version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite dev",
@@ -29,7 +29,7 @@
"vite": "^6.0.2"
},
"dependencies": {
- "@monicon/vite": "*",
- "@monicon/svelte": "*"
+ "@monicon/vite": "1.1.1",
+ "@monicon/svelte": "1.1.1"
}
}
diff --git a/apps/vite-react/package.json b/apps/vite-react/package.json
index 1170fcf..99fdc2c 100644
--- a/apps/vite-react/package.json
+++ b/apps/vite-react/package.json
@@ -10,13 +10,13 @@
"preview": "vite preview"
},
"dependencies": {
- "@monicon/react": "*",
+ "@monicon/react": "1.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
- "@monicon/vite": "*",
+ "@monicon/vite": "1.1.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
diff --git a/apps/vite-vue/package.json b/apps/vite-vue/package.json
index d6681ad..9fa372d 100644
--- a/apps/vite-vue/package.json
+++ b/apps/vite-vue/package.json
@@ -10,7 +10,7 @@
},
"dependencies": {
"vue": "^3.5.10",
- "@monicon/vue": "*"
+ "@monicon/vue": "1.1.1"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.1.4",
diff --git a/packages/babel-plugin/.gitignore b/packages/babel-plugin/.gitignore
deleted file mode 100644
index cf309c2..0000000
--- a/packages/babel-plugin/.gitignore
+++ /dev/null
@@ -1,28 +0,0 @@
-# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
-
-# dependencies
-node_modules
-.pnp
-.pnp.js
-
-
-# misc
-.DS_Store
-*.pem
-
-# build
-dist
-
-# debug
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-
-# local env files
-.env.local
-.env.development.local
-.env.test.local
-.env.production.local
-
-# turbo
-.turbo
\ No newline at end of file
diff --git a/packages/babel-plugin/CHANGELOG.md b/packages/babel-plugin/CHANGELOG.md
deleted file mode 100644
index ea537c8..0000000
--- a/packages/babel-plugin/CHANGELOG.md
+++ /dev/null
@@ -1,257 +0,0 @@
-# @monicon/babel-plugin
-
-## 1.1.0
-
-### Minor Changes
-
-- [#56](https://github.com/oktaysenkan/monicon/pull/56) [`82fb3b0`](https://github.com/oktaysenkan/monicon/commit/82fb3b09cbfa74cce0d59ea7999bc87936059de3) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - feat(svelte): add svelte 5 support (#55)
-
-### Patch Changes
-
-- Updated dependencies [[`82fb3b0`](https://github.com/oktaysenkan/monicon/commit/82fb3b09cbfa74cce0d59ea7999bc87936059de3)]:
- - @monicon/core@1.1.0
-
-## 1.0.0
-
-### Major Changes
-
-- [#52](https://github.com/oktaysenkan/monicon/pull/52) [`05ae5f5`](https://github.com/oktaysenkan/monicon/commit/05ae5f59e76be1b91bcba22b62e2b928d179c217) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - stable release
-
-### Patch Changes
-
-- Updated dependencies [[`05ae5f5`](https://github.com/oktaysenkan/monicon/commit/05ae5f59e76be1b91bcba22b62e2b928d179c217)]:
- - @monicon/core@1.0.0
-
-## 0.0.153
-
-### Patch Changes
-
-- [#49](https://github.com/oktaysenkan/monicon/pull/49) [`3d99a2a`](https://github.com/oktaysenkan/monicon/commit/3d99a2a84c01c9b6e52da955a7915791ee4c6aca) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - implement custom loaders
-
-- Updated dependencies [[`3d99a2a`](https://github.com/oktaysenkan/monicon/commit/3d99a2a84c01c9b6e52da955a7915791ee4c6aca)]:
- - @monicon/core@0.0.153
-
-## 0.0.152
-
-### Patch Changes
-
-- [#46](https://github.com/oktaysenkan/monicon/pull/46) [`bf84d7e`](https://github.com/oktaysenkan/monicon/commit/bf84d7edc2b9d4d197875437c663eae6f800e2c4) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - load icons synchronously
-
-- Updated dependencies [[`bf84d7e`](https://github.com/oktaysenkan/monicon/commit/bf84d7edc2b9d4d197875437c663eae6f800e2c4)]:
- - @monicon/core@0.0.152
-
-## 0.0.151
-
-### Patch Changes
-
-- [#44](https://github.com/oktaysenkan/monicon/pull/44) [`da4bd96`](https://github.com/oktaysenkan/monicon/commit/da4bd969ed3af993d4d01ffb69cbad86cf32184f) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - update react peer dependencies
-
-- Updated dependencies [[`da4bd96`](https://github.com/oktaysenkan/monicon/commit/da4bd969ed3af993d4d01ffb69cbad86cf32184f)]:
- - @monicon/core@0.0.151
-
-## 0.0.150
-
-### Patch Changes
-
-- [#42](https://github.com/oktaysenkan/monicon/pull/42) [`7fcefdc`](https://github.com/oktaysenkan/monicon/commit/7fcefdcab57a20b7eb8464525aecea156705f97d) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - Qwik support added
-
-- Updated dependencies [[`7fcefdc`](https://github.com/oktaysenkan/monicon/commit/7fcefdcab57a20b7eb8464525aecea156705f97d)]:
- - @monicon/core@0.0.150
-
-## 0.0.149
-
-### Patch Changes
-
-- [`a096797`](https://github.com/oktaysenkan/monicon/commit/a0967972bbbb57d9ac701822fcb6e8947d7aed19) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - add support for loading collections
-
-- Updated dependencies [[`a096797`](https://github.com/oktaysenkan/monicon/commit/a0967972bbbb57d9ac701822fcb6e8947d7aed19)]:
- - @monicon/core@0.0.149
-
-## 0.0.148
-
-### Patch Changes
-
-- [`a3353b6`](https://github.com/oktaysenkan/monicon/commit/a3353b6239937c6523bc621b25a6c75a63ab7cb3) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - use require instead of await import
-
-- Updated dependencies [[`a3353b6`](https://github.com/oktaysenkan/monicon/commit/a3353b6239937c6523bc621b25a6c75a63ab7cb3)]:
- - @monicon/core@0.0.148
-
-## 0.0.147
-
-### Patch Changes
-
-- [`489830b`](https://github.com/oktaysenkan/monicon/commit/489830bc4f352a620f8f54ce863c2f6d8e7f075c) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - remove mjs output
-
-- Updated dependencies [[`489830b`](https://github.com/oktaysenkan/monicon/commit/489830bc4f352a620f8f54ce863c2f6d8e7f075c)]:
- - @monicon/core@0.0.147
-
-## 0.0.146
-
-### Patch Changes
-
-- [#37](https://github.com/oktaysenkan/monicon/pull/37) [`4f61546`](https://github.com/oktaysenkan/monicon/commit/4f61546635416f54cd85c2c042f7b44e119d14c4) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - use await import
-
-- Updated dependencies [[`4f61546`](https://github.com/oktaysenkan/monicon/commit/4f61546635416f54cd85c2c042f7b44e119d14c4)]:
- - @monicon/core@0.0.146
-
-## 0.0.145
-
-### Patch Changes
-
-- [#35](https://github.com/oktaysenkan/monicon/pull/35) [`54ee3ff`](https://github.com/oktaysenkan/monicon/commit/54ee3ffd51df589a4d2131029a55847ed15d8f9a) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - resolve navigator.product issue
-
-- Updated dependencies [[`54ee3ff`](https://github.com/oktaysenkan/monicon/commit/54ee3ffd51df589a4d2131029a55847ed15d8f9a)]:
- - @monicon/core@0.0.145
-
-## 0.0.144
-
-### Patch Changes
-
-- [`0819e8d`](https://github.com/oktaysenkan/monicon/commit/0819e8d7d31485fed596e985b7dce330f82296f2) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - revert config file feature
-
-- Updated dependencies [[`0819e8d`](https://github.com/oktaysenkan/monicon/commit/0819e8d7d31485fed596e985b7dce330f82296f2)]:
- - @monicon/core@0.0.144
-
-## 0.0.140
-
-### Patch Changes
-
-- remove unused deps
-- Updated dependencies
- - @monicon/core@0.0.140
-
-## 0.0.139
-
-### Patch Changes
-
-- change import path of stringToIcon
-- Updated dependencies
- - @monicon/core@0.0.139
-
-## 0.0.138
-
-### Patch Changes
-
-- remove side effects
-- Updated dependencies
- - @monicon/core@0.0.138
-
-## 0.0.137
-
-### Patch Changes
-
-- implement strokeWidth support
-- Updated dependencies
- - @monicon/core@0.0.137
-
-## 0.0.136
-
-### Patch Changes
-
-- remove importIcons functions
-- Updated dependencies
- - @monicon/core@0.0.136
-
-## 0.0.135
-
-### Patch Changes
-
-- fix import path
-- Updated dependencies
- - @monicon/core@0.0.135
-
-## 0.0.134
-
-### Patch Changes
-
-- remove prop drilling
-- Updated dependencies
- - @monicon/core@0.0.134
-
-## 0.0.133
-
-### Patch Changes
-
-- fix color issue
-- Updated dependencies
- - @monicon/core@0.0.133
-
-## 0.0.132
-
-### Patch Changes
-
-- implement prop drilling
-- Updated dependencies
- - @monicon/core@0.0.132
-
-## 0.0.131
-
-### Patch Changes
-
-- update readme
-- Updated dependencies
- - @monicon/core@0.0.131
-
-## 0.0.130
-
-### Patch Changes
-
-- add postinstall script
-- Updated dependencies
- - @monicon/core@0.0.130
-
-## 0.0.129
-
-### Patch Changes
-
-- change resolve name as @monicon/runtime
-- Updated dependencies
- - @monicon/core@0.0.129
-
-## 0.0.128
-
-### Patch Changes
-
-- change import path
-- Updated dependencies
- - @monicon/core@0.0.128
-
-## 0.0.127
-
-### Patch Changes
-
-- change placeholder package name as icon-runtime
-- Updated dependencies
- - @monicon/core@0.0.127
-
-## 0.0.126
-
-### Patch Changes
-
-- change placeholder package name as monicon-runtime
-- Updated dependencies
- - @monicon/core@0.0.126
-
-## 0.0.125
-
-### Patch Changes
-
-- add placeholder variable back
-- Updated dependencies
- - @monicon/core@0.0.125
-
-## 0.0.124
-
-### Patch Changes
-
-- add docs website
-- Updated dependencies
- - @monicon/core@0.0.124
-
-## 0.0.123
-
-### Patch Changes
-
-- change package name
-- Updated dependencies
- - @monicon/core@0.0.123
diff --git a/packages/babel-plugin/package.json b/packages/babel-plugin/package.json
deleted file mode 100644
index 0dc772d..0000000
--- a/packages/babel-plugin/package.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "name": "@monicon/babel-plugin",
- "version": "1.1.0",
- "main": "./dist/index.js",
- "module": "./dist/index.mjs",
- "types": "./dist/index.d.ts",
- "files": [
- "dist"
- ],
- "publishConfig": {
- "access": "public"
- },
- "exports": {
- ".": {
- "import": "./dist/index.mjs",
- "require": "./dist/index.js"
- }
- },
- "scripts": {
- "build": "tsup",
- "dev": "tsup --watch",
- "clean": "rm -rf dist"
- },
- "devDependencies": {
- "@monicon/typescript-config": "1.1.0",
- "tsup": "^8.0.1",
- "typescript": "^5.3.3"
- },
- "dependencies": {
- "@babel/core": "^7.25.2",
- "@monicon/core": "1.1.0"
- }
-}
diff --git a/packages/babel-plugin/src/index.ts b/packages/babel-plugin/src/index.ts
deleted file mode 100644
index 322514d..0000000
--- a/packages/babel-plugin/src/index.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import type * as b from "@babel/core";
-import {
- getIconsFilePath,
- getResolveAlias,
- MoniconOptions,
-} from "@monicon/core";
-
-const alias = getResolveAlias();
-
-export default ({ types: t }: typeof b): b.PluginObj => {
- return {
- visitor: {
- ImportDeclaration(path) {
- if (path.node.source.value === alias) {
- path.node.source.value = getIconsFilePath(
- this.opts as MoniconOptions
- );
- }
- },
- CallExpression(path) {
- const { callee, arguments: args } = path.node;
-
- const isFunctionImport =
- t.isIdentifier(callee, { name: "import" }) ||
- t.isIdentifier(callee, { name: "require" }) ||
- t.isImport(callee);
-
- const firstArg = args?.[0];
-
- const isImportingIcons =
- args.length === 1 &&
- t.isStringLiteral(firstArg) &&
- firstArg.value === alias;
-
- if (isFunctionImport && isImportingIcons && firstArg) {
- firstArg.value = getIconsFilePath(this.opts as MoniconOptions);
- }
- },
- },
- };
-};
diff --git a/packages/babel-plugin/tsconfig.json b/packages/babel-plugin/tsconfig.json
deleted file mode 100644
index 073ce66..0000000
--- a/packages/babel-plugin/tsconfig.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "extends": "@monicon/typescript-config/react-native-library",
- "include": ["."],
- "exclude": ["dist", "build", "node_modules"],
- "compilerOptions": {
- "strict": true
- }
-}
diff --git a/packages/babel-plugin/tsup.config.ts b/packages/babel-plugin/tsup.config.ts
deleted file mode 100644
index c022a35..0000000
--- a/packages/babel-plugin/tsup.config.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { defineConfig, Options } from "tsup";
-
-export default defineConfig((options: Options) => ({
- entry: {
- index: "src/index.ts",
- },
- clean: true,
- format: ["cjs", "esm"],
- external: ["react"],
- dts: true,
- ...options,
-}));
diff --git a/packages/babel-plugin/types.d.ts b/packages/babel-plugin/types.d.ts
deleted file mode 100644
index c5ef1bc..0000000
--- a/packages/babel-plugin/types.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-declare module "babel-plugin-module-resolver" {
- interface PluginOptions {
- root?: string[];
- alias?: { [key: string]: string };
- extensions?: string[];
- cwd?: string;
- }
-
- const resolvePath = (source: string, file: string, options: PluginOptions) =>
- string;
-}
diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md
index fff309c..7ec63f7 100644
--- a/packages/core/CHANGELOG.md
+++ b/packages/core/CHANGELOG.md
@@ -1,5 +1,17 @@
# @monicon/core
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
## 1.1.0
### Minor Changes
diff --git a/packages/core/package.json b/packages/core/package.json
index 4a84c5a..066b574 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/core",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
@@ -32,8 +32,8 @@
"devDependencies": {
"@iconify/json": "^2.2.251",
"@iconify/types": "^2.0.0",
- "@monicon/loader": "*",
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/loader": "1.1.1",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index acf1b32..c81b9dd 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -3,9 +3,8 @@ import { loadCollectionFromFS } from "@iconify/utils/lib/loader/fs";
import { loadNodeIcon } from "@iconify/utils/lib/loader/node-loader";
import type { Loader } from "@monicon/loader";
import fs from "fs";
-import path, { dirname } from "path";
+import path from "path";
import { parseSync } from "svgson";
-import { fileURLToPath } from "url";
import * as f from "fuuu";
import { toPx } from "./utils";
@@ -35,6 +34,8 @@ export type MoniconOptions = {
customCollections?: Record>;
/**
* The name of the file to output the icons to. The file extension will be added automatically based on the type.
+ *
+ * @default "icons"
*/
outputFileName?: string;
/**
@@ -47,6 +48,12 @@ export type MoniconOptions = {
* Details: https://monicon-docs.vercel.app/troubleshooting/module-resolution
*/
type?: "cjs" | "esm";
+ /**
+ * The root directory of the project.
+ *
+ * @default process.cwd()
+ */
+ root?: string;
};
export type Icon = {
@@ -57,10 +64,11 @@ export type Icon = {
const defaultOptions: Required = {
outputFileName: "icons",
- type: "cjs",
+ type: "esm",
icons: [],
collections: [],
customCollections: {},
+ root: process.cwd(),
};
export const getResolveAlias = () => {
@@ -71,29 +79,27 @@ export const getResolveExtensions = () => {
return [".js", ".mjs"];
};
-const getIconsFilePathEsm = (
- fileName: MoniconOptions["outputFileName"] = "icons"
-) => {
- // @ts-ignore
- const currentFileName = fileURLToPath(import.meta.url);
- const directory = dirname(currentFileName);
+const getAutoGeneratedPath = (root: string) => {
+ const autoGeneratedPath = path.resolve(root, ".monicon");
- return path.resolve(directory, `${fileName}.mjs`);
-};
+ if (!fs.existsSync(autoGeneratedPath)) {
+ fs.mkdirSync(autoGeneratedPath, { recursive: true });
+ }
-const getIconsFilePathCjs = (
- fileName: MoniconOptions["outputFileName"] = "icons"
-) => {
- return path.resolve(__dirname, `${fileName}.js`);
+ return autoGeneratedPath;
};
export const getIconsFilePath = (opts?: MoniconOptions) => {
- const options: MoniconOptions = { ...defaultOptions, ...opts };
+ const options: Required = { ...defaultOptions, ...opts };
+
+ const autoGeneratedPath = getAutoGeneratedPath(options.root);
- if (options.type === "esm")
- return getIconsFilePathEsm(options.outputFileName);
+ const extension = options.type === "cjs" ? "js" : "mjs";
- return getIconsFilePathCjs(options.outputFileName);
+ return path.resolve(
+ autoGeneratedPath,
+ `${options.outputFileName}.${extension}`
+ );
};
export const transformIcon = (svg: string) => {
@@ -205,8 +211,14 @@ const writeIcons = (
outputPath: string,
type: MoniconOptions["type"] = "cjs"
) => {
- const commonjsCode = `module.exports = ${JSON.stringify(icons, null, 2)};`;
- const esmCode = `export default ${JSON.stringify(icons, null, 2)};`;
+ const header =
+ "// This file is automatically generated by Monicon. Do not edit this file directly.";
+
+ const commonjsCode = `${header}
+module.exports = ${JSON.stringify(icons, null, 2)};`;
+
+ const esmCode = `${header}
+export default ${JSON.stringify(icons, null, 2)};`;
fs.writeFileSync(outputPath, type === "cjs" ? commonjsCode : esmCode);
};
diff --git a/packages/esbuild/CHANGELOG.md b/packages/esbuild/CHANGELOG.md
index 04fe4c7..1968ed9 100644
--- a/packages/esbuild/CHANGELOG.md
+++ b/packages/esbuild/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/esbuild
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/core@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/core@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json
index 2981d38..172406a 100644
--- a/packages/esbuild/package.json
+++ b/packages/esbuild/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/esbuild",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,12 +22,12 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vite": "^6.0.2"
},
"dependencies": {
- "@monicon/core": "1.1.0"
+ "@monicon/core": "1.1.1"
}
}
diff --git a/packages/icon-loader/CHANGELOG.md b/packages/icon-loader/CHANGELOG.md
index 970e72b..6cdfb5e 100644
--- a/packages/icon-loader/CHANGELOG.md
+++ b/packages/icon-loader/CHANGELOG.md
@@ -1,5 +1,17 @@
# @monicon/icon-loader
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
## 1.1.0
### Minor Changes
diff --git a/packages/icon-loader/package.json b/packages/icon-loader/package.json
index 78b0710..c84c584 100644
--- a/packages/icon-loader/package.json
+++ b/packages/icon-loader/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/icon-loader",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
@@ -22,8 +22,8 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
- "@monicon/core": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
+ "@monicon/core": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
diff --git a/packages/loader/CHANGELOG.md b/packages/loader/CHANGELOG.md
index 1f023a7..9f4d4fc 100644
--- a/packages/loader/CHANGELOG.md
+++ b/packages/loader/CHANGELOG.md
@@ -1,5 +1,17 @@
# @monicon/loader
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
## 1.1.0
### Minor Changes
diff --git a/packages/loader/package.json b/packages/loader/package.json
index 94cb588..b686d83 100644
--- a/packages/loader/package.json
+++ b/packages/loader/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/loader",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
@@ -22,7 +22,7 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
diff --git a/packages/metro/CHANGELOG.md b/packages/metro/CHANGELOG.md
index 859340a..798e6af 100644
--- a/packages/metro/CHANGELOG.md
+++ b/packages/metro/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/metro
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/core@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/core@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/metro/package.json b/packages/metro/package.json
index 2c96b1d..904e3e9 100644
--- a/packages/metro/package.json
+++ b/packages/metro/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/metro",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,12 +22,12 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"metro-config": "^0.80.12"
},
"dependencies": {
- "@monicon/core": "1.1.0"
+ "@monicon/core": "1.1.1"
}
}
diff --git a/packages/metro/src/index.ts b/packages/metro/src/index.ts
index 5d544c1..585b627 100644
--- a/packages/metro/src/index.ts
+++ b/packages/metro/src/index.ts
@@ -12,11 +12,13 @@ export const withMonicon = (
): IntermediateConfigT => {
const alias = getResolveAlias();
- void loadIcons(options);
+ const config: MoniconOptions = { ...options, type: "cjs" };
+
+ void loadIcons(config);
metroConfig.resolver.extraNodeModules = {
...metroConfig.resolver.extraNodeModules,
- [alias]: getIconsFilePath(options),
+ [alias]: getIconsFilePath(config),
};
return metroConfig;
diff --git a/packages/native/CHANGELOG.md b/packages/native/CHANGELOG.md
index a33bc39..315e3d4 100644
--- a/packages/native/CHANGELOG.md
+++ b/packages/native/CHANGELOG.md
@@ -1,5 +1,25 @@
# @monicon/native
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/core@1.1.1
+ - @monicon/icon-loader@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/core@1.1.1-next.0
+ - @monicon/icon-loader@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/native/package.json b/packages/native/package.json
index ef11351..f7e2580 100644
--- a/packages/native/package.json
+++ b/packages/native/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/native",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
@@ -26,15 +26,15 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"@types/react": "^18.2.46",
"@types/react-native": "^0.73.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "@monicon/core": "1.1.0",
- "@monicon/icon-loader": "1.1.0",
+ "@monicon/core": "1.1.1",
+ "@monicon/icon-loader": "1.1.1",
"html-react-parser": "^5.1.16"
},
"peerDependencies": {
diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md
index 3c9530f..254d210 100644
--- a/packages/nuxt/CHANGELOG.md
+++ b/packages/nuxt/CHANGELOG.md
@@ -1,5 +1,27 @@
# @monicon/nuxt
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/webpack@1.1.1
+ - @monicon/core@1.1.1
+ - @monicon/vite@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/webpack@1.1.1-next.0
+ - @monicon/core@1.1.1-next.0
+ - @monicon/vite@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json
index e16043e..08c7eb1 100644
--- a/packages/nuxt/package.json
+++ b/packages/nuxt/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/nuxt",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,14 +22,14 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
"@nuxt/kit": "^3.11.2",
- "@monicon/core": "1.1.0",
- "@monicon/webpack": "1.1.0",
- "@monicon/vite": "1.1.0"
+ "@monicon/core": "1.1.1",
+ "@monicon/webpack": "1.1.1",
+ "@monicon/vite": "1.1.1"
}
}
diff --git a/packages/qwik/CHANGELOG.md b/packages/qwik/CHANGELOG.md
index 1d11f38..270a5f0 100644
--- a/packages/qwik/CHANGELOG.md
+++ b/packages/qwik/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/qwik
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/icon-loader@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/icon-loader@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/qwik/package.json b/packages/qwik/package.json
index ce584db..dc4fb90 100644
--- a/packages/qwik/package.json
+++ b/packages/qwik/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/qwik",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "Create a Qwik library",
"main": "./lib/index.qwik.mjs",
"qwik": "./lib/index.qwik.mjs",
@@ -37,11 +37,11 @@
"clean": "rm -rf dist"
},
"dependencies": {
- "@monicon/icon-loader": "*"
+ "@monicon/icon-loader": "1.1.1"
},
"devDependencies": {
"@builder.io/qwik": "1.9.1",
- "@monicon/vite": "*",
+ "@monicon/vite": "1.1.1",
"@types/eslint": "8.56.10",
"@types/node": "20.14.11",
"@typescript-eslint/eslint-plugin": "7.16.1",
diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md
index 9c0f775..78c876c 100644
--- a/packages/react/CHANGELOG.md
+++ b/packages/react/CHANGELOG.md
@@ -1,5 +1,25 @@
# @monicon/react
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/core@1.1.1
+ - @monicon/icon-loader@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/core@1.1.1-next.0
+ - @monicon/icon-loader@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/react/package.json b/packages/react/package.json
index 92653b7..79d7166 100644
--- a/packages/react/package.json
+++ b/packages/react/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/react",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -26,14 +26,14 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"@types/react": "^18.2.46",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "@monicon/core": "1.1.0",
- "@monicon/icon-loader": "1.1.0"
+ "@monicon/core": "1.1.1",
+ "@monicon/icon-loader": "1.1.1"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"
diff --git a/packages/rollup/CHANGELOG.md b/packages/rollup/CHANGELOG.md
index 4cb971f..f34b6f9 100644
--- a/packages/rollup/CHANGELOG.md
+++ b/packages/rollup/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/rollup
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/vite@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/vite@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/rollup/package.json b/packages/rollup/package.json
index 68f29e0..5cf54db 100644
--- a/packages/rollup/package.json
+++ b/packages/rollup/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/rollup",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,11 +22,11 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "@monicon/vite": "1.1.0"
+ "@monicon/vite": "1.1.1"
}
}
diff --git a/packages/rspack/CHANGELOG.md b/packages/rspack/CHANGELOG.md
index e407912..e4b3a69 100644
--- a/packages/rspack/CHANGELOG.md
+++ b/packages/rspack/CHANGELOG.md
@@ -1,5 +1,25 @@
# @monicon/rspack
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/webpack@1.1.1
+ - @monicon/core@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/webpack@1.1.1-next.0
+ - @monicon/core@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/rspack/package.json b/packages/rspack/package.json
index cdd8eb1..60ab88d 100644
--- a/packages/rspack/package.json
+++ b/packages/rspack/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/rspack",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,13 +22,13 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "@monicon/core": "1.1.0",
- "@monicon/webpack": "1.1.0",
+ "@monicon/core": "1.1.1",
+ "@monicon/webpack": "1.1.1",
"@rspack/core": "^1.0.8",
"radash": "^12.1.0"
}
diff --git a/packages/svelte/package.json b/packages/svelte/package.json
index b57406d..5e5c9bd 100644
--- a/packages/svelte/package.json
+++ b/packages/svelte/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/svelte",
- "version": "1.1.0",
+ "version": "1.1.1",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
@@ -34,8 +34,8 @@
},
"devDependencies": {
"@eslint/compat": "^1.2.3",
- "@monicon/icon-loader": "1.1.0",
- "@monicon/vite": "1.1.0",
+ "@monicon/icon-loader": "1.1.1",
+ "@monicon/vite": "1.1.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.9.0",
"@sveltejs/package": "^2.0.0",
diff --git a/packages/typescript-config/CHANGELOG.md b/packages/typescript-config/CHANGELOG.md
index 3bf5275..a480f95 100644
--- a/packages/typescript-config/CHANGELOG.md
+++ b/packages/typescript-config/CHANGELOG.md
@@ -1,5 +1,17 @@
# @monicon/typescript-config
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
## 1.1.0
### Minor Changes
diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json
index 9259041..8f1217d 100644
--- a/packages/typescript-config/package.json
+++ b/packages/typescript-config/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/typescript-config",
- "version": "1.1.0",
+ "version": "1.1.1",
"private": true,
"publishConfig": {
"access": "public"
diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md
index a07862a..be16d47 100644
--- a/packages/vite/CHANGELOG.md
+++ b/packages/vite/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/vite
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/core@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/core@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/vite/package.json b/packages/vite/package.json
index 6368f91..6c7d0a9 100644
--- a/packages/vite/package.json
+++ b/packages/vite/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/vite",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -22,12 +22,12 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"dependencies": {
- "@monicon/core": "1.1.0",
+ "@monicon/core": "1.1.1",
"vite": "^6.0.2"
}
}
diff --git a/packages/vite/src/index.ts b/packages/vite/src/index.ts
index 29c4a14..6d247ae 100644
--- a/packages/vite/src/index.ts
+++ b/packages/vite/src/index.ts
@@ -22,6 +22,16 @@ export const monicon = async (options: MoniconOptions): Promise => [
return null;
},
+ config: () => ({
+ server: {
+ fs: {
+ allow: [".."],
+ },
+ },
+ optimizeDeps: {
+ exclude: [alias],
+ },
+ }),
},
];
diff --git a/packages/vue/CHANGELOG.md b/packages/vue/CHANGELOG.md
index 84c387e..12f68c5 100644
--- a/packages/vue/CHANGELOG.md
+++ b/packages/vue/CHANGELOG.md
@@ -1,5 +1,23 @@
# @monicon/vue
+## 1.1.1
+
+### Patch Changes
+
+- [#59](https://github.com/oktaysenkan/monicon/pull/59) [`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81) Thanks [@oktaysenkan](https://github.com/oktaysenkan)! - fix: change auto-generated icons folder path
+
+- Updated dependencies [[`165e338`](https://github.com/oktaysenkan/monicon/commit/165e338e4c53088bebf2e08f49816fbec2161e81)]:
+ - @monicon/icon-loader@1.1.1
+
+## 1.1.1-next.0
+
+### Patch Changes
+
+- fix: change auto-generated icons folder path
+
+- Updated dependencies []:
+ - @monicon/icon-loader@1.1.1-next.0
+
## 1.1.0
### Minor Changes
diff --git a/packages/vue/package.json b/packages/vue/package.json
index 52a2d72..e57284c 100644
--- a/packages/vue/package.json
+++ b/packages/vue/package.json
@@ -1,6 +1,6 @@
{
"name": "@monicon/vue",
- "version": "1.1.0",
+ "version": "1.1.1",
"main": "./dist/monicon.umd.js",
"module": "dist/monicon.mjs",
"types": "./dist/index.d.ts",
@@ -22,7 +22,7 @@
"clean": "rm -rf dist"
},
"devDependencies": {
- "@monicon/typescript-config": "1.1.0",
+ "@monicon/typescript-config": "1.1.1",
"@vitejs/plugin-vue": "^5.1.4",
"rollup-plugin-typescript2": "^0.36.0",
"typescript": "^5.3.3",
@@ -30,7 +30,7 @@
"vite-plugin-dts": "^4.2.3"
},
"dependencies": {
- "@monicon/icon-loader": "1.1.0"
+ "@monicon/icon-loader": "1.1.1"
},
"peerDependencies": {
"vue": "^2.6.14 || ^3.0.0"
diff --git a/packages/vue/src/monicon.vue b/packages/vue/src/monicon.vue
index a56dfd2..e24872d 100644
--- a/packages/vue/src/monicon.vue
+++ b/packages/vue/src/monicon.vue
@@ -1,5 +1,5 @@