Skip to content

Commit

Permalink
Clean babel-eslint-*/**/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Jan 30, 2020
1 parent 1528d7d commit 99f7144
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Makefile
Expand Up @@ -268,10 +268,8 @@ bootstrap: bootstrap-only
$(MAKE) build

clean-lib:
# TODO: Don't delete eslint/*/lib when they use src
$(foreach source, $(SOURCES), \
$(if $(filter-out $(source), eslint), \
$(call clean-source-lib, $(source))))
$(call clean-source-lib, $(source)))

clean-runtime-helpers:
rm -f packages/babel-runtime/helpers/**/*.js
Expand Down Expand Up @@ -307,8 +305,7 @@ define clean-source-test
endef

define clean-source-all
# TODO: Don't delete eslint/*/lib when they use src
$(if $(filter-out $1, eslint), $(call clean-source-lib, $1))
$(call clean-source-lib, $1)
rm -rf $(1)/*/node_modules
rm -rf $(1)/*/package-lock.json

Expand Down
2 changes: 1 addition & 1 deletion eslint/babel-eslint-config-internal/package.json
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"private": true,
"repository": "https://github.com/babel/babel/tree/master/eslint/babel-eslint-config-internal",
"main": "lib/index.js",
"main": "index.js",
"peerDependencies": {
"babel-eslint": "^10.0.0 || ^11.0.0-0",
"eslint-plugin-flowtype": "^3.0.0"
Expand Down

0 comments on commit 99f7144

Please sign in to comment.