publish dist with package (#154)

This commit is contained in:
Christoph Hermann 2018-11-01 03:01:56 +01:00 committed by Luke Westby
parent bb7a55c654
commit c3d355469d
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -227,3 +227,4 @@ Session.vim
tags
# End of https://www.gitignore.io/api/osx,elm,vim,node,macos,linux,emacs,sublimetext
dist.js

View File

@ -6,8 +6,13 @@
"directories": {
"test": "tests"
},
"files": [
"dist.js"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepublish": "npm run build-lib",
"build-lib": "npx browserify --entry lib/index.js --outfile dist.js"
},
"repository": {
"type": "git",