Skip to content

Commit a1c8f28

Browse files
committed
Add babel and build script
1 parent fc993e2 commit a1c8f28

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"description": "Hash link scroll functionality for React Router v4",
55
"main": "lib/index.js",
66
"scripts": {
7+
"build": "rm -rf lib && babel src -d lib --presets=latest,react --plugins=transform-object-rest-spread",
8+
"prepublish": "npm run build"
79
},
810
"repository": {
911
"type": "git",
@@ -19,5 +21,11 @@
1921
"bugs": {
2022
"url": "https://github.com/rafrex/react-router-hash-link-scroll/issues"
2123
},
22-
"homepage": "https://github.com/rafrex/react-router-hash-link-scroll#readme"
24+
"homepage": "https://github.com/rafrex/react-router-hash-link-scroll#readme",
25+
"devDependencies": {
26+
"babel-cli": "^6.24.0",
27+
"babel-plugin-transform-object-rest-spread": "^6.23.0",
28+
"babel-preset-latest": "^6.24.0",
29+
"babel-preset-react": "^6.23.0"
30+
}
2331
}

0 commit comments

Comments
 (0)