diff --git a/package.json b/package.json index 860e44aba..e4f345b59 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "scripts": { "start": "webpack-dev-server -d --content-base ./ --history-api-fallback --inline modules/index.js", "build": "node ./tools/build.js", - "prepublish": "node ./tools/build.js", + "prepublishOnly": "node ./tools/build.js", "clean": "git clean -fdX .", "lint": "eslint modules", "test": "karma start --single-run" @@ -48,7 +48,6 @@ "eslint-plugin-import": "^2.0.0", "expect": "^21.0.0", "gzip-size": "^3.0.0", - "in-publish": "^2.0.0", "jest-mock": "^21.0.0", "karma": "^1.2.0", "karma-browserstack-launcher": "^1.0.1", diff --git a/tools/build.js b/tools/build.js index 2e587e0a9..da19c79c8 100644 --- a/tools/build.js +++ b/tools/build.js @@ -1,12 +1,8 @@ const fs = require('fs') const execSync = require('child_process').execSync -const inInstall = require('in-publish').inInstall const prettyBytes = require('pretty-bytes') const gzipSize = require('gzip-size') -if (inInstall()) - process.exit(0) - const exec = (command, extraEnv) => execSync(command, { stdio: 'inherit', diff --git a/yarn.lock b/yarn.lock index 1a29c90ab..85d22f56c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2120,10 +2120,6 @@ imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" -in-publish@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" - indexof@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d"