Skip to content

Commit

Permalink
Try better fix for ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 5, 2024
1 parent 77d6664 commit 5c155ce
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/integration-tests/e2e-babel-old-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,27 @@ sed -i 's/describeGte("12.0.0")("worker"/describeGte("12.0.0").skip("worker"/g'
sed -i 's/nodeGte12(/nodeGte12.skip(/g' eslint/babel-eslint-tests/test/integration/parser-override.js
sed -i 's/nodeGte12NoESM(/nodeGte12NoESM.skip(/g' eslint/babel-eslint-tests/test/integration/config-files.js


# @babel/plugin-proposal-json-modules says that it needs @babel/core@^7.22.0, but
# it actually only needs @babel/parser@^7.22.0. We are running this test with an
# old @babel/core version and a new @babel/parser version, so we can just suppress
# the version assertion.
echo 'diff --git a/lib/index.js b/lib/index.js
index e42148103bec33c8b6d8f1bd4d07ebce2049c3b6..396cdf46c0e4d430be5e27ee6911fb4872e9b160 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,1 +1,1 @@ var index = declare(api => {
- api.assertVersion("^7.22.0");
+ //api.assertVersion("^7.22.0");' > .yarn/patches/babel__plugin-proposal-json-modules.patch
node -e "
var pkg = require('./package.json');
pkg.devDependencies['@babel/plugin-proposal-json-modules'] =
'patch:@babel/plugin-proposal-json-modules@npm:' +
pkg.devDependencies['@babel/plugin-proposal-json-modules'] +
'#~/.yarn/patches/babel__plugin-proposal-json-modules.patch';
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
"

# Update deps, build and test
rm yarn.lock
YARN_ENABLE_IMMUTABLE_INSTALLS=false make -j test-ci
Expand Down

0 comments on commit 5c155ce

Please sign in to comment.