From 079780b4328ea8d4b243744190af279afad874f8 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Mon, 27 Aug 2018 10:43:45 -0700 Subject: [PATCH] Make it easier to re-run local prod builds (#8556) [skip ci] --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 407ccfe142..8a7fffa239 100644 --- a/Makefile +++ b/Makefile @@ -107,15 +107,20 @@ test-test262-update-whitelist: clone-license: ./scripts/clone-license.sh -publish: - git pull --rebase +prepublish-build: make clean-lib rm -rf packages/babel-runtime/helpers rm -rf packages/babel-runtime-corejs2/helpers rm -rf packages/babel-runtime-corejs2/core-js BABEL_ENV=production make build-dist - make test make clone-license + +prepublish: + git pull --rebase + make prepublish-build + make test + +publish: prepublish # not using lerna independent mode atm, so only update packages that have changed since we use ^ # --only-explicit-updates ./node_modules/.bin/lerna publish --force-publish=*