From 0e4cf1e6a2ffc04692bf9cd3c7a3d63fffaad8be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 30 Jul 2020 12:54:56 -0400 Subject: [PATCH] chore: build standalone once in prepublish step (#11777) --- Makefile | 4 ++-- packages/babel-standalone/package.json | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2a03bc59dc..c44393339a 100644 --- a/Makefile +++ b/Makefile @@ -211,8 +211,8 @@ clone-license: ./scripts/clone-license.sh prepublish-build: clean-lib clean-runtime-helpers - NODE_ENV=production BABEL_ENV=production $(MAKE) build - $(MAKE) clone-license + NODE_ENV=production BABEL_ENV=production $(MAKE) build-bundle + $(MAKE) prepublish-build-standalone clone-license prepublish: $(MAKE) bootstrap-only diff --git a/packages/babel-standalone/package.json b/packages/babel-standalone/package.json index 948ef473b4..7ed1d77c8c 100644 --- a/packages/babel-standalone/package.json +++ b/packages/babel-standalone/package.json @@ -7,9 +7,6 @@ "babel.js", "babel.min.js" ], - "scripts": { - "prepublishOnly": "cd ../.. && make prepublish-build-standalone" - }, "devDependencies": { "@babel/core": "^7.10.5", "@babel/helper-plugin-utils": "^7.10.4",