{
  "name": "esparse",
  "version": "0.6.5",
  "description": "An ECMAScript Parser",
  "homepage": "https://github.com/zenparsing/esparse",
  "main": "dist/default.js",
  "module": "src/default.js",
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
    "eslint": "^4.19.1"
  },
  "scripts": {
    "lint": "eslint src/*",
    "test": "npm run build && node test",
    "build": "babel src --out-dir dist --plugins=transform-es2015-modules-commonjs",
    "prepublishOnly": "npm run lint && npm test"
  },
  "dependencies": {}
}

{
  "name": "esparse",
  "version": "0.6.5",
  "description": "An ECMAScript Parser",
  "homepage": "https://github.com/zenparsing/esparse",
  "main": "dist/default.js",
  "module": "src/default.js",
  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
    "eslint": "^4.19.1"
  },
  "scripts": {
    "lint": "eslint src/*",
    "test": "npm run build && node test",
    "build": "git clean -dfX ./dist && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs",
    "prepublishOnly": "npm run lint && npm test"
  },
  "dependencies": {}
}

Add git clean to build script
Add git clean to build script
