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: