Use prepublishOnly script instead of prepublish

The prepublish step is deprecated for npm scripts. The intention here is
to run the build only before publishing the packages.
diff --git a/package.json b/package.json
index c88a13d..b01a129 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
     "clean": "lerna exec -- rimraf LICENSE NOTICE esm lib",
     "lint": "eslint --fix --quiet .",
     "prepare": "lerna run prepare",
-    "prepublish": "yarn run build",
+    "prepublishOnly": "yarn run build",
     "start": "webpack-dev-server --hot --mode development",
     "test": "cross-env BABEL_ENV=test nyc mocha packages/*/test/**/*.js",
     "validate": "cross-env BABEL_ENV=test nyc mocha test/**/*.js"