Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit d698aa8

Browse files
committed
Make ready for npm publish
Add pre/post publish scripts. Add main
1 parent b3f21c9 commit d698aa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
"name": "redux-trigger",
33
"version": "1.0.0",
44
"description": "Redux State Triggers",
5+
"main": "lib/index.js",
56
"scripts": {
67
"build-lib": "npm run clean && npm run build-lib-dev && npm run build-lib-release",
78
"build-lib-dev": "node_modules/babel/bin/babel.js src --out-dir lib",
89
"build-lib-release": "node_modules/babel/bin/babel.js src/index.js --out-file lib/index.min.js --plugins uglify:after",
9-
"clean": "rimraf lib"
10+
"clean": "rimraf lib",
11+
"prepublish": "npm run build-lib-release",
12+
"postpublish": "npm run clean"
1013
},
1114
"repository": {
1215
"type": "git",

0 commit comments

Comments
 (0)