{
  "name": "electron-mocha",
  "version": "4.0.1",
  "description": "Mocha tests in Electron.",
  "main": "index.js",
  "scripts": {
    "test": "standard && node bin/electron-mocha test/main && node bin/electron-mocha --renderer test/renderer",
    "mocha": "node bin/electron-mocha",
    "prepublish": "npm test"
  },
  "bin": {
    "electron-mocha": "./bin/electron-mocha"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jprichardson/electron-mocha.git"
  },
  "keywords": [
    "mocha",
    "electron",
    "electron-tool",
    "test",
    "testing",
    "tdd",
    "bdd",
    "browser",
    "browser testing"
  ],
  "author": "JP Richardson",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/jprichardson/electron-mocha/issues"
  },
  "homepage": "https://github.com/jprichardson/electron-mocha#readme",
  "dependencies": {
    "commander": "^2.11.0",
    "electron-window": "^0.8.0",
    "fs-extra": "^4.0.1",
    "mocha": "^3.5.0",
    "which": "^1.3.0"
  },
  "devDependencies": {
    "electron": "^1.7.7",
    "standard": "^10.0.3"
  }
}

{
  "name": "electron-mocha",
  "version": "4.0.1",
  "description": "Mocha tests in Electron.",
  "main": "index.js",
  "scripts": {
    "test": "standard && node bin/electron-mocha test/main && node bin/electron-mocha --renderer test/renderer",
    "mocha": "node bin/electron-mocha",
    "prepublishOnly": "npm test"
  },
  "bin": {
    "electron-mocha": "./bin/electron-mocha"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/jprichardson/electron-mocha.git"
  },
  "keywords": [
    "mocha",
    "electron",
    "electron-tool",
    "test",
    "testing",
    "tdd",
    "bdd",
    "browser",
    "browser testing"
  ],
  "author": "JP Richardson",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/jprichardson/electron-mocha/issues"
  },
  "homepage": "https://github.com/jprichardson/electron-mocha#readme",
  "dependencies": {
    "commander": "^2.11.0",
    "electron-window": "^0.8.0",
    "fs-extra": "^4.0.1",
    "mocha": "^3.5.0",
    "which": "^1.3.0"
  },
  "devDependencies": {
    "electron": "^1.7.7",
    "standard": "^10.0.3"
  }
}

Use prepublishOnly instead of prebulish for npm5
Use prepublishOnly instead of prebulish for npm5
