Add npm prepare

This commit is contained in:
Miguel Mota 2020-06-06 14:01:39 -07:00
parent a3894314fa
commit 69208d984d
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "merkletreejs", "name": "merkletreejs",
"version": "0.2.4", "version": "0.2.5",
"description": "Construct Merkle Trees and verify proofs", "description": "Construct Merkle Trees and verify proofs",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
@ -12,7 +12,8 @@
"build": "rm -rf dist/ && tsc && npm run build:browser", "build": "rm -rf dist/ && tsc && npm run build:browser",
"build:browser": "browserify -t [ babelify --presets [ @babel/preset-env ] ] dist/index.js | uglifyjs > merkletree.js", "build:browser": "browserify -t [ babelify --presets [ @babel/preset-env ] ] dist/index.js | uglifyjs > merkletree.js",
"lint": "standardx --fix index.ts test/*.js", "lint": "standardx --fix index.ts test/*.js",
"docs": "rm -rf docs/ && typedoc --plugin typedoc-plugin-markdown -hideSources --theme markdown --hideGenerator --excludeExternals --excludePrivate --out docs index.ts" "docs": "rm -rf docs/ && typedoc --plugin typedoc-plugin-markdown -hideSources --theme markdown --hideGenerator --excludeExternals --excludePrivate --out docs index.ts",
"prepare": "npm run lint && npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",