From 1fdfbd0b56de9ce25d9954636a5bd400df2e2115 Mon Sep 17 00:00:00 2001 From: Timothy Cardenas Date: Tue, 3 Mar 2020 22:17:19 -0800 Subject: [PATCH] fix: Yarn compatibility without npm - Prepare is run when yarn runs installs - Prepare calls npm which isn't available on all machines - We rename prepare to prepublihs like it was a few years ago - Additional detail here: https://github.com/webpack-contrib/karma-webpack/pull/367 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d48a594..8f7be02 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different", "lint:js": "eslint --cache src test", "lint": "npm-run-all -l -p \"lint:**\"", - "prepare": "npm run build", + "prepublish": "npm run build", "release": "standard-version", "security": "npm audit", "test:only": "cross-env NODE_ENV=test jest",