{
  "name": "primary-click",
  "version": "1.4.0",
  "description": "Detects if the primary button has been clicked in mouse events.",
  "main": "lib/index.cjs.js",
  "module": "lib/index.esm.js",
  "files": [
    "lib"
  ],
  "scripts": {
    "build": "rollup -c",
    "coverage": "jest --coverage",
    "format": "prettier --write .",
    "prepare": "npm run build",
    "test": "jest"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jacobbuck/primary-click.git"
  },
  "keywords": [
    "click",
    "dom",
    "event",
    "mouse"
  ],
  "author": "Jacob Buck <buck.jacob@gmail.com>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/jacobbuck/primary-click/issues"
  },
  "homepage": "https://github.com/jacobbuck/primary-click",
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/preset-env": "^7.9.5",
    "husky": "^4.2.5",
    "jest": "^25.4.0",
    "lint-staged": "^10.1.7",
    "prettier": "^2.0.5",
    "rollup": "^2.7.2",
    "rollup-plugin-babel": "^4.4.0"
  }
}

{
  "name": "primary-click",
  "version": "1.4.0",
  "description": "Detects if the primary button has been clicked in mouse events.",
  "main": "lib/index.cjs.js",
  "module": "lib/index.esm.js",
  "files": [
    "lib"
  ],
  "scripts": {
    "build": "rollup -c",
    "coverage": "jest --coverage",
    "format": "prettier --write .",
    "prepare": "npm run build",
    "preversion": "npm run test",
    "test": "jest"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jacobbuck/primary-click.git"
  },
  "keywords": [
    "click",
    "dom",
    "event",
    "mouse"
  ],
  "author": "Jacob Buck <buck.jacob@gmail.com>",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/jacobbuck/primary-click/issues"
  },
  "homepage": "https://github.com/jacobbuck/primary-click",
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/preset-env": "^7.9.5",
    "husky": "^4.2.5",
    "jest": "^25.4.0",
    "lint-staged": "^10.1.7",
    "prettier": "^2.0.5",
    "rollup": "^2.7.2",
    "rollup-plugin-babel": "^4.4.0"
  }
}

Add preversion script to run tests before creating a new version
Add preversion script to run tests before creating a new version