test: patch verifyPackageTree for test purposes (#13567)
This commit is contained in:
parent
aa18da08cd
commit
fa439d6a73
@ -28,6 +28,13 @@ cd tmp/create-react-app || exit
|
|||||||
# This change replaces useBuiltIns: true with runtime: "classic"
|
# This change replaces useBuiltIns: true with runtime: "classic"
|
||||||
sed -i 's/useBuiltIns: true/runtime: "classic"/' packages/babel-preset-react-app/create.js
|
sed -i 's/useBuiltIns: true/runtime: "classic"/' packages/babel-preset-react-app/create.js
|
||||||
|
|
||||||
|
# create-react-app throws if `@babel/eslint-parser` is not pinned, but we
|
||||||
|
# must upgrade it for test purposes
|
||||||
|
sed -i "s#'@babel/eslint-parser',##" packages/react-scripts/scripts/utils/verifyPackageTree.js
|
||||||
|
|
||||||
|
# remove this line when https://github.com/facebook/create-react-app/pull/11216 gets merged
|
||||||
|
sed -i "s#isESLintPluginEnabled && 'babel-eslint',##" packages/react-scripts/scripts/utils/verifyPackageTree.js
|
||||||
|
|
||||||
bump_deps="$PWD/../../utils/bump-babel-dependencies.js"
|
bump_deps="$PWD/../../utils/bump-babel-dependencies.js"
|
||||||
node "$bump_deps"
|
node "$bump_deps"
|
||||||
for d in ./packages/*/
|
for d in ./packages/*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user