sirius-common-utils 1.0.5 → 1.0.7
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/sirius-common-utils.js +881 -4610
- package/dist/sirius-common-utils.umd.cjs +1056 -27
- package/package.json +10 -2
- package/vite.config.js +4 -10
- package/index.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sirius-common-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "",
|
|
5
|
+
"main": "./dist/sirius-common-utils.umd.cjs",
|
|
6
|
+
"module": "./dist/sirius-common-utils.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/sirius-common-utils.js",
|
|
10
|
+
"require": "./dist/sirius-common-utils.umd.cjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
5
13
|
"repository": {
|
|
6
14
|
"type": "git",
|
|
7
15
|
"url": "git+https://github.com/yangshuyi/js-common-utils.git"
|
|
@@ -22,7 +30,7 @@
|
|
|
22
30
|
"build": "vite build",
|
|
23
31
|
"preview": "vite preview"
|
|
24
32
|
},
|
|
25
|
-
"
|
|
33
|
+
"peerDependencies": {
|
|
26
34
|
"axios": "1.3.4",
|
|
27
35
|
"dayjs": "^1.11.9",
|
|
28
36
|
"js-base64": "^3.7.2",
|
package/vite.config.js
CHANGED
|
@@ -5,16 +5,10 @@ import react from '@vitejs/plugin-react'
|
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
plugins: [react()],
|
|
7
7
|
build:{
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
|
13
|
-
// globals: {
|
|
14
|
-
// vue: "Vue",
|
|
15
|
-
// },
|
|
16
|
-
// },
|
|
17
|
-
// },
|
|
8
|
+
rollupOptions: {
|
|
9
|
+
external: ["vue","axios","dayjs","js-base64","js-md5","lodash"],
|
|
10
|
+
},
|
|
11
|
+
minify: false,
|
|
18
12
|
lib:{
|
|
19
13
|
name: 'sirius-common-utils',
|
|
20
14
|
entry: './src/packages/index.js'
|
package/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./dist");
|