{
  "name": "caniuse-api",
  "version": "1.2.1",
  "description": "request the caniuse data to check browsers compatibilities",
  "main": "dist/index.js",
  "files": [
    "dist/",
    "LICENSE"
  ],
  "dependencies": {
    "browserslist": "^0.2.0",
    "caniuse-db": "^1.0.30000030",
    "lodash.memoize": "^2.4.1",
    "lodash.uniq": "^2.4.1"
  },
  "devDependencies": {
    "6to5": "^1.14.17",
    "jshint": "^2.5.10",
    "tap-spec": "^2.1.1",
    "tape": "^3.0.3"
  },
  "scripts": {
    "build": "6to5 src --out-dir dist",
    "lint": "jshint src",
    "prepublish": "npm run build",
    "pretest": "6to5-node src/generate-features.js",
    "test": "npm run lint && 6to5-node test/*.js | tap-spec",
    "postinstall": "[ -d dist ] && node dist/generate-features.js || true"
 },
  "repository": "nyalab/caniuse-api",
  "keywords": [
    "caniuse",
    "browserslist"
  ],
  "author": "nyalab",
  "license": "MIT"
}

{
  "name": "caniuse-api",
  "version": "1.2.1",
  "description": "request the caniuse data to check browsers compatibilities",
  "main": "dist/index.js",
  "files": [
    "dist/",
    "LICENSE"
  ],
  "dependencies": {
    "browserslist": "^0.2.0",
    "caniuse-db": "^1.0.30000030",
    "lodash.memoize": "^2.4.1",
    "lodash.uniq": "^2.4.1",
    "shelljs": "^0.3.0"
  },
  "devDependencies": {
    "6to5": "^1.14.17",
    "jshint": "^2.5.10",
    "tap-spec": "^2.1.1",
    "tape": "^3.0.3"
  },
  "scripts": {
    "build": "6to5 src --out-dir dist",
    "lint": "jshint src",
    "prepublish": "npm run build",
    "pretest": "6to5-node src/generate-features.js",
    "test": "npm run lint && 6to5-node test/*.js | tap-spec",
    "postinstall": "node -e \"require('shelljs/global');if(test('-d', 'dist'))exec('node dist/generate-features.js')\""
  },
  "repository": "nyalab/caniuse-api",
  "keywords": [
    "caniuse",
    "browserslist"
  ],
  "author": "nyalab",
  "license": "MIT"
}

Fix postinstall hook for Windows
Fix postinstall hook for Windows

Maybe we should provide this as a script, but since it’s short, I think
we can like that for now.
