diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 43c97e7..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -package-lock=false diff --git a/package.json b/package.json index 8067075..83b63bc 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "license": "MIT", "scripts": { "build": "./scripts/build.sh", - "release": "./scripts/release.sh", "lint": "$(npm bin)/standard", + "preversion": "npm run build", "test": "npm run lint && npm run unit", "unit": "$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register testutils.js", "test-watch": "$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register testutils.js --watch" @@ -22,7 +22,7 @@ }, "main": "dist/mimeparser", "dependencies": { - "emailjs-addressparser": "^2.0.1", + "emailjs-addressparser": "^2.0.2", "emailjs-mime-codec": "^2.0.8", "ramda": "^0.26.1" }, @@ -31,10 +31,10 @@ "babel-preset-es2015": "^6.24.1", "babel-register": "^6.26.0", "chai": "^4.2.0", - "mocha": "^6.0.2", - "nodemon": "^1.18.10", + "mocha": "^6.1.4", + "nodemon": "^1.19.1", "pre-commit": "^1.2.2", - "sinon": "^7.3.0", + "sinon": "^7.3.2", "standard": "^12.0.1", "text-encoding": "^0.7.0" }, diff --git a/scripts/release.sh b/scripts/release.sh deleted file mode 100755 index a116e7f..0000000 --- a/scripts/release.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -json_value() { - KEY=$1 - num=$2 - awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p -} - -# read version from package.json and trim leading/trailing whitespace -version=`less package.json | json_value version 1 | sed -e 's/^ *//' -e 's/ *$//'` -prefix="v" -# tag, push, publish -echo -e "\n> tagging $prefix$version" -git tag "$prefix$version" -echo -e "\n> pushing commits to origin" -git push -echo -e "\n> pushing tags to origin" -git push --tags -echo -e "\n> publishing on npm" -npm publish