Skip to content

Commit

Permalink
build: Run build on prepublish
Browse files Browse the repository at this point in the history
Fixes #853
  • Loading branch information
tmcw committed Jul 28, 2017
1 parent dddac19 commit 81fa4b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -97,9 +97,10 @@
"url": "git@github.com:documentationjs/documentation.git"
},
"scripts": {
"build": "rm -rf lib && babel -D src -d lib",
"build": "rm -rf lib && babel -D src -d lib && npm run doc",
"release": "standard-version",
"precommit": "lint-staged --verbose",
"prepublish": "npm run build",
"format": "prettier --write '{src,__tests__,declarations,bin,default_theme}/**/*.js' --single-quote",
"doc": "./bin/documentation.js build src/index.js -f md --access=public > docs/NODE_API.md",
"self-lint": "node ./bin/documentation.js lint src",
Expand Down

0 comments on commit 81fa4b0

Please sign in to comment.