Fix publishing broken by eslint packages (#10721)

This commit is contained in:
Nicolò Ribaudo 2019-11-15 20:54:04 +01:00 committed by GitHub
parent 5bb4ee73da
commit 72eca8f0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,8 +232,10 @@ bootstrap: bootstrap-only
$(MAKE) build
clean-lib:
# TODO: Don't delete eslint/*/lib when they use src
$(foreach source, $(SOURCES), \
$(call clean-source-lib, $(source)))
$(if $(filter-out $(source), eslint), \
$(call clean-source-lib, $(source))))
clean-runtime-helpers:
rm -rf packages/babel-runtime/helpers
@ -262,7 +264,8 @@ define clean-source-test
endef
define clean-source-all
rm -rf $(1)/*/lib
# TODO: Don't delete eslint/*/lib when they use src
$(if $(filter-out $1, eslint), $(call clean-source-lib, $1))
rm -rf $(1)/*/node_modules
rm -rf $(1)/*/package-lock.json