@xaypay/tui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -1
  2. package/vite.config.mjs +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -52,6 +52,7 @@
52
52
  "react": "^18.3.1",
53
53
  "react-dom": "^18.3.1",
54
54
  "rollup": "^2.79.0",
55
+ "rollup-plugin-import-meta-glob": "^1.0.2",
55
56
  "rollup-plugin-peer-deps-external": "^2.2.4",
56
57
  "rollup-plugin-postcss": "^4.0.2",
57
58
  "sass": "^1.77.1",
package/vite.config.mjs CHANGED
@@ -3,6 +3,8 @@ import fsPromises from 'fs/promises'
3
3
  import { defineConfig } from 'vite'
4
4
  import react from '@vitejs/plugin-react'
5
5
  import svgr from 'vite-plugin-svgr'
6
+ import glob from 'rollup-plugin-import-meta-glob';
7
+
6
8
 
7
9
  const folders = fs.readdirSync('./src', { withFileTypes: true })
8
10
  const fileNames = folders.filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name)
@@ -18,7 +20,9 @@ const filePaths = fileNames.reduce(
18
20
 
19
21
  // https://vitejs.dev/config/
20
22
  export default defineConfig({
21
- plugins: [react(),svgr()],
23
+ plugins: [react(), svgr(), glob({
24
+ include: ['**/*.js']
25
+ })],
22
26
  resolve: {
23
27
  // @ts-ignore
24
28
  alias: { ...filePaths },