File tree 3 files changed +26
-6
lines changed
3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change
1
+ ## 发布
2
+
3
+ ``` bash
4
+ npm login
5
+ npm publish
6
+
7
+ # 以@开头的包名
8
+ npm publish --access public
9
+ ```
10
+
1
11
## 使用
12
+
13
+ [ demo] ( ./index.html )
14
+
15
+ ![ ] ( ./demo.png )
16
+
17
+ ``` ts
18
+ // import jsonp from '@tangdw/jsonp'
19
+
20
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @tangdw/jsonp" ,
3
- "version" : " 0.0.1 " ,
3
+ "version" : " 0.0.2 " ,
4
4
"author" : " tangdw<tangdunwang@foxmail.com>" ,
5
5
"license" : " MIT" ,
6
6
"repository" : " https://github.com/tangdw/jsonp" ,
7
- "main" : " ./dist/jsonp.umd.js" ,
8
- "module" : " ./dist/jsonp.es.js" ,
9
- "types" : " types/jsonp.d.ts" ,
7
+ "type" : " module" ,
8
+ "main" : " dist/jsonp.umd.js" ,
9
+ "module" : " dist/jsonp.es.js" ,
10
+ "types" : " types/main.d.ts" ,
10
11
"exports" : {
11
12
"." : {
12
- "import" : " ./ dist/jsonp.es.js" ,
13
- "require" : " ./ dist/jsonp.umd.js"
13
+ "import" : " dist/jsonp.es.js" ,
14
+ "require" : " dist/jsonp.umd.js"
14
15
}
15
16
},
16
17
"files" : [
You can’t perform that action at this time.
0 commit comments