From cb4f4f4d5f84135133bdef4ffa762d6969dad8a6 Mon Sep 17 00:00:00 2001 From: Logan Smyth Date: Sun, 25 Feb 2018 21:38:11 -0800 Subject: [PATCH] Ensure that typechecking artifacts are built up front for watch. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 123c16e1a4..a563a059a1 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,12 @@ build-dist: build watch: clean make clean-lib + + # Ensure that build artifacts for types are created during local + # development too. + BABEL_ENV=development ./node_modules/.bin/gulp build + node ./packages/babel-types/scripts/generateTypeHelpers.js + node scripts/generators/flow.js > ./packages/babel-types/lib/index.js.flow BABEL_ENV=development ./node_modules/.bin/gulp watch flow: