m-tool-store 1.0.26 → 1.0.27
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/README.md +21 -5
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -1,22 +1,38 @@
|
|
|
1
1
|
# mToolStore
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# 介绍
|
|
4
4
|
工具库
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# 软件架构
|
|
7
7
|
软件架构说明
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# 安装教程
|
|
11
11
|
|
|
12
12
|
1. xxxx
|
|
13
13
|
2. xxxx
|
|
14
14
|
3. xxxx
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
# 使用说明
|
|
17
17
|
|
|
18
18
|
package.json
|
|
19
19
|
类型声明文件或者文件声明:
|
|
20
20
|
在其他项目导入时会报错, 需要在这里进行暴露路径
|
|
21
21
|
key: 暴露的路径,以npm包根目录为 .
|
|
22
|
-
value: import && require
|
|
22
|
+
value: import && require
|
|
23
|
+
# 类型导出声明
|
|
24
|
+
```
|
|
25
|
+
"types": "./types/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"import": "./lib/m-tool-store.js",
|
|
29
|
+
"require": "./lib/m-tool-store.umd.cjs",
|
|
30
|
+
"types": "./types/index.d.ts" //这里也要加types属性才有效
|
|
31
|
+
},
|
|
32
|
+
"./types/global": {
|
|
33
|
+
"import": "./types/global.d.ts",
|
|
34
|
+
"require": "./types/global.d.ts",
|
|
35
|
+
"types": "./types/global.d.ts"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "m-tool-store",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "JavaScript 工具库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Mmm",
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"import": "./lib/m-tool-store.js",
|
|
14
|
-
"require": "./lib/m-tool-store.umd.cjs"
|
|
14
|
+
"require": "./lib/m-tool-store.umd.cjs",
|
|
15
|
+
"types": "./types/index.d.ts"
|
|
15
16
|
},
|
|
16
17
|
"./types/global": {
|
|
17
18
|
"import": "./types/global.d.ts",
|
|
18
|
-
"require": "./types/global.d.ts"
|
|
19
|
+
"require": "./types/global.d.ts",
|
|
20
|
+
"types": "./types/global.d.ts"
|
|
19
21
|
}
|
|
20
22
|
},
|
|
21
23
|
"files": [
|