Clean babel-eslint-*/**/lib (#11070)
This commit is contained in:
parent
4070b7a7f6
commit
f987821099
7
Makefile
7
Makefile
@ -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
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user