@meatech/payblend_app_ui_component 1.1.12 → 1.1.13

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 +1 -1
  2. package/rollup.config.mjs +53 -54
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meatech/payblend_app_ui_component",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "UI Component Library for Payblend App",
5
5
  "main": "./dist/components/index.js",
6
6
  "module": "./dist/components/index.js",
package/rollup.config.mjs CHANGED
@@ -4,14 +4,14 @@ import commonjs from "@rollup/plugin-commonjs";
4
4
  import dts from "rollup-plugin-dts";
5
5
  import json from "@rollup/plugin-json";
6
6
  import glob from "fast-glob";
7
- import image from '@rollup/plugin-image';
8
- import url from '@rollup/plugin-url';
9
- import svgr from '@svgr/rollup';
10
- import postcss from 'rollup-plugin-postcss';
11
- import copy from 'rollup-plugin-copy';
12
- import alias from '@rollup/plugin-alias';
13
- import path from 'path';
14
- import { fileURLToPath } from 'url';
7
+ import image from "@rollup/plugin-image";
8
+ import url from "@rollup/plugin-url";
9
+ import svgr from "@svgr/rollup";
10
+ import postcss from "rollup-plugin-postcss";
11
+ import copy from "rollup-plugin-copy";
12
+ import alias from "@rollup/plugin-alias";
13
+ import path from "path";
14
+ import { fileURLToPath } from "url";
15
15
 
16
16
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
17
17
 
@@ -24,25 +24,26 @@ const entries = await glob([
24
24
  "./constants/index.ts",
25
25
  "./types/index.ts",
26
26
  "./data/index.ts",
27
+ // "/data/*",
27
28
  "./yup/index.ts",
28
29
  "./jsons/index.ts",
29
30
  ]);
30
31
 
31
32
  if (entries.length === 0) {
32
33
  throw new Error(
33
- "No entry files found. Please check your glob patterns and file structure."
34
+ "No entry files found. Please check your glob patterns and file structure.",
34
35
  );
35
36
  }
36
37
 
37
38
  const external = [
38
- 'react',
39
- 'react-dom',
40
- 'react-native',
41
- 'tslib',
42
- 'yup',
39
+ "react",
40
+ "react-dom",
41
+ "react-native",
42
+ "tslib",
43
+ "yup",
43
44
  /^@babel\/runtime/,
44
45
  /^@rollup\/.*/,
45
- /^rollup-plugin-.*/
46
+ /^rollup-plugin-.*/,
46
47
  ];
47
48
 
48
49
  const config = [
@@ -58,77 +59,75 @@ const config = [
58
59
  external,
59
60
  plugins: [
60
61
  alias({
61
- entries: [
62
- { find: '@ui', replacement: path.resolve(__dirname, '.') }
63
- ]
62
+ entries: [{ find: "@ui", replacement: path.resolve(__dirname, ".") }],
64
63
  }),
65
64
  resolve({
66
65
  preferBuiltins: true,
67
- mainFields: ['module', 'main'],
68
- extensions: ['.js', '.jsx', '.ts', '.tsx', '.json']
66
+ mainFields: ["module", "main"],
67
+ extensions: [".js", ".jsx", ".ts", ".tsx", ".json"],
69
68
  }),
70
69
  commonjs({
71
70
  include: /node_modules/,
72
71
  transformMixedEsModules: true,
73
- requireReturnsDefault: 'auto'
72
+ requireReturnsDefault: "auto",
74
73
  }),
75
74
  typescript({
76
- tsconfig: './tsconfig.json',
75
+ tsconfig: "./tsconfig.json",
77
76
  sourceMap: true,
78
77
  inlineSources: true,
79
78
  compilerOptions: {
80
- module: 'ESNext',
79
+ module: "ESNext",
81
80
  declaration: true,
82
- declarationDir: './dist',
83
- allowJs: true
84
- }
81
+ declarationDir: "./dist",
82
+ allowJs: true,
83
+ },
85
84
  }),
86
85
  json(),
87
86
  image(),
88
87
  url({
89
88
  include: [
90
- '**/*.woff',
91
- '**/*.woff2',
92
- '**/*.ttf',
93
- '**/*.eot',
94
- '**/*.png',
95
- '**/*.jpg',
96
- '**/*.jpeg',
97
- '**/*.gif',
98
- '**/*.svg'
89
+ "**/*.woff",
90
+ "**/*.woff2",
91
+ "**/*.ttf",
92
+ "**/*.eot",
93
+ "**/*.png",
94
+ "**/*.jpg",
95
+ "**/*.jpeg",
96
+ "**/*.gif",
97
+ "**/*.svg",
99
98
  ],
100
99
  limit: 0,
101
- fileName: '[name][extname]',
102
- publicPath: 'assets/'
100
+ fileName: "[name][extname]",
101
+ publicPath: "assets/",
103
102
  }),
104
103
  svgr(),
105
104
  postcss({
106
- extensions: ['.css', '.scss', '.sass'],
105
+ extensions: [".css", ".scss", ".sass"],
107
106
  minimize: true,
108
107
  extract: true,
109
108
  modules: true,
110
- use: ['sass']
109
+ use: ["sass"],
111
110
  }),
112
111
  copy({
113
112
  targets: [
114
- {
115
- src: 'assets/images/**/*',
116
- dest: 'dist/assets/images',
117
- flatten: false
113
+ {
114
+ src: "assets/images/**/*",
115
+ dest: "dist/assets/images",
116
+ flatten: false,
118
117
  },
119
- {
120
- src: 'assets/fonts/**/*',
121
- dest: 'dist/assets/fonts',
122
- flatten: false
118
+ {
119
+ src: "assets/fonts/**/*",
120
+ dest: "dist/assets/fonts",
121
+ flatten: false,
122
+ },
123
+ {
124
+ src: "assets/pdf/**/*",
125
+ dest: "dist/assets/pdf",
126
+ flatten: false,
123
127
  },
124
- {
125
- src: 'assets/pdf/**/*',
126
- dest: 'dist/assets/pdf',
127
- flatten: false
128
- }
129
128
  ],
130
- verbose: true
131
- })
129
+ verbose: true,
130
+ }),
132
131
  ],
133
132
  },
134
133
  {