Skip to content

Commit ff50b5f

Browse files
committed
Add release script
1 parent ec34b44 commit ff50b5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "A higher order React component for Sortable (https://github.com/RubaXa/Sortable).",
55
"main": "lib/index.js",
66
"scripts": {
7-
"prepublish": "npm run lint && npm run build && npm test && npm run lint",
7+
"prepublish": "npm run lint && npm run test && npm run build && npm run dist && npm run release",
88
"build": "babel ./src --out-dir ./lib",
99
"test": "./babel-tap --coverage test/*.js",
1010
"dist": "webpack; BUILD_ENV=dist webpack",
11+
"release": "mkdir -p releases; cp -f dist/react-sortable.js releases/react-sortable-${npm_package_version}.js; cp -f dist/react-sortable.min.js releases/react-sortable-${npm_package_version}.min.js",
1112
"lint": "eslint ./src",
1213
"lint:fix": "eslint --fix ./src",
1314
"precommit-check": "npm run lint",

0 commit comments

Comments
 (0)