diff --git a/src/icons/package-lock.json b/src/icons/package-lock.json index 8c1006c4..dd2676fc 100644 --- a/src/icons/package-lock.json +++ b/src/icons/package-lock.json @@ -1,7 +1,7 @@ { "name": "@xola/icons", "version": "1.1.4", - "lockfileVersion": 2, + "lockfileVersion": 3, "requires": true, "packages": { "": { @@ -110,59 +110,5 @@ "url": "https://github.com/sponsors/dcastil" } } - }, - "dependencies": { - "clsx": { - "version": "1.2.1" - }, - "js-tokens": { - "version": "4.0.0" - }, - "lodash": { - "version": "4.17.21" - }, - "loose-envify": { - "version": "1.4.0", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "prettier": { - "version": "2.8.8" - }, - "prettier-plugin-tailwindcss": { - "version": "0.1.13", - "requires": {} - }, - "react": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", - "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", - "requires": { - "loose-envify": "^1.1.0" - } - }, - "react-dom": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", - "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", - "requires": { - "loose-envify": "^1.1.0", - "scheduler": "^0.23.0" - } - }, - "scheduler": { - "version": "0.23.2", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", - "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", - "requires": { - "loose-envify": "^1.1.0" - } - }, - "tailwind-merge": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.5.5.tgz", - "integrity": "sha512-0LXunzzAZzo0tEPxV3I297ffKZPlKDrjj7NXphC8V5ak9yHC5zRmxnOe2m/Rd/7ivsOMJe3JZ2JVocoDdQTRBA==" - } } } diff --git a/src/icons/package.json b/src/icons/package.json index 40729f4e..07d859ad 100644 --- a/src/icons/package.json +++ b/src/icons/package.json @@ -2,8 +2,14 @@ "name": "@xola/icons", "version": "1.1.4", "description": "Xola's icon set", - "main": "./index.js", + "files": [ + "build", + "icons.es.js" + ], + "main": "build/icons.es.js", + "module": "build/icons.es.js", "scripts": { + "build": "vite build", "format": "prettier --write -l src", "lint": "xola-lint src", "lint:fix": "xola-lint --fix src" diff --git a/src/icons/vite.config.js b/src/icons/vite.config.js new file mode 100644 index 00000000..c5698065 --- /dev/null +++ b/src/icons/vite.config.js @@ -0,0 +1,16 @@ +import path from "path"; +import { defineConfig } from "vite"; +import pkg from "./package.json"; + +export default defineConfig({ + build: { + outDir: "build", + + lib: { + entry: path.resolve(__dirname, "./index.js"), + name: "XolaIcons", + fileName: (format) => `icons.${format}.js`, + formats: ["es"] + }, + } +});