{
  "name": "spin-bike-rpm-meter",
  "version": "0.1.0",
  "description": "",
  "main": "lib/index.js",
  "jsnext:main": "src/index.js",
  "files": [
    "dist",
    "lib",
    "src"
  ],
  "scripts": {
    "prepublish": "babel src -d lib"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lamosty/spin-bike-rpm-meter.git"
  },
  "author": "Rastislav Lamos",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/lamosty/spin-bike-rpm-meter/issues"
  },
  "homepage": "https://github.com/lamosty/spin-bike-rpm-meter#readme",
  "dependencies": {
    "audio-context": "^0.1.0",
    "getusermedia": "^1.3.5",
    "unix-timestamp": "^0.2.0",
    "wolfy87-eventemitter": "^4.3.0"
  },
  "devDependencies": {
    "babel-cli": "^6.4.0",
    "babel-core": "^6.4.0",
    "babel-preset-es2015": "^6.3.13",
    "webpack": "^1.12.11"
  }
}

{
  "name": "spin-bike-rpm-meter",
  "version": "0.1.0",
  "description": "",
  "main": "lib/index.js",
  "jsnext:main": "src/index.js",
  "files": [
    "dist",
    "lib",
    "src"
  ],
  "scripts": {
    "clean": "rimraf lib dist",
    "prepublish": "npm run clean && babel src -d lib"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/lamosty/spin-bike-rpm-meter.git"
  },
  "author": "Rastislav Lamos",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/lamosty/spin-bike-rpm-meter/issues"
  },
  "homepage": "https://github.com/lamosty/spin-bike-rpm-meter#readme",
  "dependencies": {
    "audio-context": "^0.1.0",
    "getusermedia": "^1.3.5",
    "unix-timestamp": "^0.2.0",
    "wolfy87-eventemitter": "^4.3.0"
  },
  "devDependencies": {
    "babel-cli": "^6.4.0",
    "babel-core": "^6.4.0",
    "babel-preset-es2015": "^6.3.13",
    "rimraf": "^2.5.0",
    "webpack": "^1.12.11"
  }
}

Add rimraf module and cleaning script
Add rimraf module and cleaning script

Run rimraf on lib and dist before each npm publish.
