{
  "name": "node-elm-compiler",
  "version": "5.0.1",
  "description": "A Node.js interface to the Elm compiler binaries.",
  "main": "src/index.js",
  "scripts": {
    "build": "tsc",
    "test": "rm -rf test/fixtures/elm-stuff & mocha test/*.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/rtfeldman/node-elm-compiler.git"
  },
  "engines": {
    "node": ">=4.0.0"
  },
  "keywords": [
    "elm",
    "compiler",
    "node"
  ],
  "author": "Richard Feldman",
  "license": "BSD-3-Clause",
  "bugs": {
    "url": "https://github.com/rtfeldman/node-elm-compiler/issues"
  },
  "homepage": "https://github.com/rtfeldman/node-elm-compiler",
  "dependencies": {
    "cross-spawn": "4.0.0",
    "find-elm-dependencies": "2.0.0",
    "lodash": "4.17.10",
    "temp": "^0.8.3"
  },
  "devDependencies": {
    "chai": "3.5.0",
    "glob": "7.1.1",
    "mocha": "5.1.1",
    "typescript": "^3.2.2"
  }
}
{
  "name": "node-elm-compiler",
  "version": "5.0.1",
  "description": "A Node.js interface to the Elm compiler binaries.",
  "main": "src/index.js",
  "scripts": {
    "prepack": "npm run build",
    "build": "tsc",
    "test": "rm -rf test/fixtures/elm-stuff & mocha test/*.js"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/rtfeldman/node-elm-compiler.git"
  },
  "engines": {
    "node": ">=4.0.0"
  },
  "keywords": [
    "elm",
    "compiler",
    "node"
  ],
  "author": "Richard Feldman",
  "license": "BSD-3-Clause",
  "bugs": {
    "url": "https://github.com/rtfeldman/node-elm-compiler/issues"
  },
  "homepage": "https://github.com/rtfeldman/node-elm-compiler",
  "dependencies": {
    "cross-spawn": "4.0.0",
    "find-elm-dependencies": "2.0.0",
    "lodash": "4.17.10",
    "temp": "^0.8.3"
  },
  "devDependencies": {
    "chai": "3.5.0",
    "glob": "7.1.1",
    "mocha": "5.1.1",
    "typescript": "^3.2.2"
  }
}
Add a script hook for compiling before publish
Add a script hook for compiling before publish

I chose prepackj, because the sources should only be complied before publishing to npm or when installing via git.
