Skip to content

Commit

Permalink
Add additional package scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tterb committed Sep 1, 2020
1 parent 8c25159 commit 17d2e27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"build:dist": "webpack --config webpack.dist.config.js --progress --colors && uglifyjs dist/index.js -cm -o dist/index.min.js --source-map content=dist/index.js.map,url=index.min.js.map",
"build:babel": "babel src --out-dir lib",
"build": "npm run build:example && npm run build:dist && npm run build:babel",
"prepublish": "npm run build"
"prepublish": "npm run build",
"publish": "cd lib && npm publish . && cd ..",
"postpublish" : "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"author": "Ryan Valentin",
"license": "MIT",
Expand Down

0 comments on commit 17d2e27

Please sign in to comment.