Skip to content

Commit

Permalink
Fix publishing broken by eslint packages (babel#10721)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo authored Nov 15, 2019
1 parent 5bb4ee7 commit 72eca8f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 72eca8f

Please sign in to comment.