Skip to content

Commit

Permalink
add dist script to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Oct 22, 2020
1 parent 0855e6a commit 58b226c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test": "node test.js && echo 'Verifying TypeScript definition...' && tsc --noEmit",
"build": "esbuild --minify --sourcemap --target=es2016 --outfile=dist/lru.js lru.js",
"prepublishOnly": "npm test",
"dist": "git status -uno --porcelain | grep -v \"?? \" && echo 'aborted; uncommitted changes' || (npm publish . && git tag v`node -p 'require(\"./package.json\").version'`) && echo 'Final step:'; echo ' git push origin master' v`node -p 'require(\"./package.json\").version'`",
"benchmark": "node --expose-gc benchmark.js"
},
"repository": {
Expand Down

0 comments on commit 58b226c

Please sign in to comment.