@asaleh37/ui-base 1.2.12 → 1.2.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -6
- package/src/index.ts +4 -1
- package/vite.config.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asaleh37/ui-base",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Ahmed Saleh Mohamed",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"eslint": "^9.19.0",
|
|
49
49
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
50
50
|
"eslint-plugin-react-refresh": "^0.4.18",
|
|
51
|
+
"global": "^4.4.0",
|
|
51
52
|
"globals": "^15.14.0",
|
|
52
53
|
"i18next": "^24.2.2",
|
|
53
54
|
"i18next-browser-languagedetector": "^8.0.3",
|
|
@@ -73,8 +74,7 @@
|
|
|
73
74
|
"typescript": "~5.7.2",
|
|
74
75
|
"typescript-eslint": "^8.22.0",
|
|
75
76
|
"vite": "^6.1.0",
|
|
76
|
-
"zod": "^3.24.2"
|
|
77
|
-
"global": "^4.4.0"
|
|
77
|
+
"zod": "^3.24.2"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@emotion/cache": "^11.14.0",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"draft-js": "^0.11.7",
|
|
101
101
|
"draft-js-import-html": "^1.4.1",
|
|
102
102
|
"draftjs-to-html": "^0.9.1",
|
|
103
|
+
"global": "^4.4.0",
|
|
103
104
|
"i18next": "^24.2.2",
|
|
104
105
|
"i18next-browser-languagedetector": "^8.0.3",
|
|
105
106
|
"i18next-http-backend": "^3.0.2",
|
|
@@ -118,10 +119,10 @@
|
|
|
118
119
|
"rollup-plugin-postcss": "^4.0.2",
|
|
119
120
|
"stylis": "^4.3.6",
|
|
120
121
|
"stylis-plugin-rtl": "^2.1.1",
|
|
121
|
-
"zod": "^3.24.2"
|
|
122
|
-
"global": "^4.4.0"
|
|
122
|
+
"zod": "^3.24.2"
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
125
|
-
"@rollup/plugin-json": "^6.1.0"
|
|
125
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
126
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
126
127
|
}
|
|
127
128
|
}
|
package/src/index.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { defineConfig } from "vite";
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import rollupNodePolyFill from "rollup-plugin-polyfill-node";
|
|
4
|
+
import tsconfigPaths from "vite-tsconfig-paths";
|
|
5
|
+
import path from "path";
|
|
4
6
|
|
|
5
7
|
// https://vite.dev/config/
|
|
6
8
|
export default defineConfig({
|
|
@@ -12,9 +14,18 @@ export default defineConfig({
|
|
|
12
14
|
include: ["fbjs"],
|
|
13
15
|
},
|
|
14
16
|
build: {
|
|
17
|
+
lib: {
|
|
18
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
19
|
+
},
|
|
15
20
|
rollupOptions: {
|
|
16
21
|
external: ["react", "react-dom"], // 👈 keep react peer
|
|
17
22
|
plugins: [rollupNodePolyFill()],
|
|
23
|
+
output: {
|
|
24
|
+
globals: {
|
|
25
|
+
react: "React",
|
|
26
|
+
"react-dom": "ReactDOM",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
18
29
|
},
|
|
19
30
|
},
|
|
20
31
|
server: {
|