Skip to content

Commit 6aa4d89

Browse files
committed
provide dist files
1 parent 9646bb7 commit 6aa4d89

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,22 @@
1919
},
2020
"files": [
2121
"lib",
22-
"assets/*.css"
22+
"assets/*.css",
23+
"dist"
2324
],
2425
"licenses": "MIT",
2526
"main": "./lib/index",
27+
"entry": {
28+
"rc-scroll-anim": ["./src/index.js", "./assets/index.less"]
29+
},
2630
"config": {
2731
"port": 8020
2832
},
2933
"scripts": {
3034
"build": "rc-tools run build",
3135
"gh-pages": "rc-tools run gh-pages",
3236
"start": "rc-tools run server",
33-
"pub": "rc-tools run pub",
37+
"pub": "rc-tools run pub --babel-runtime",
3438
"lint": "rc-tools run lint",
3539
"karma": "rc-tools run karma",
3640
"saucelabs": "rc-tools run saucelabs",
@@ -52,6 +56,7 @@
5256
"lint"
5357
],
5458
"dependencies": {
59+
"babel-runtime": "6.x",
5560
"raf": "3.x",
5661
"rc-tween-one": "~0.11.6",
5762
"tween-functions": "1.x"

0 commit comments

Comments
 (0)