Fix e2e-old-babel test to always use old core/helpers/traverse#14794
Fix e2e-old-babel test to always use old core/helpers/traverse#14794nicolo-ribaudo merged 7 commits intobabel:mainfrom
Conversation
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54724/ |
|
The gulpfile updates in #14793 should fix this! |
|
That's great! |
|
Yeah, we currently only pin some packages to simulate "bad" user configurations, where they may have an old |
(
# Yarn prints colors on GH actions even if it's piped, unless explicitly disabled
# https://github.com/yarnpkg/berry/pull/659
YARN_ENABLE_COLORS=0 yarn why @babel/core | grep -o "@babel/core@npm:.* (via npm:.*)";
YARN_ENABLE_COLORS=0 yarn why @babel/helpers | grep -o "@babel/helpers@npm:.* (via npm:.*)";
YARN_ENABLE_COLORS=0 yarn why @babel/traverse | grep -o "@babel/traverse@npm:.* (via npm:.*)"
) | uniq | node -e "
var pkg = require('./package.json');
var packages = fs.readFileSync(0, 'utf8').trim().split('\n');
pkg.devDependencies['@babel/core'] = '7.0.0';
packages.forEach(desc => {
const { name, specifier } = desc
.match(/(?<name>@babel\/[a-z]+).*\(via (?<specifier>npm:[^)]+)\)/)
.groups;
pkg.resolutions[name + '@' + specifier] = '7.0.0';
});
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));
"But our current script also seems to be pinning both |
87bf9cb to
641bd62
Compare
7cc169e to
f845120
Compare

Fixes #1, Fixes #2