Skip to content

Commit 3e5c6de

Browse files
autofix-ci[bot]Dunqing
authored andcommitted
[autofix.ci] apply automated fixes
1 parent ffcd7c8 commit 3e5c6de

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

pnpm-lock.yaml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/transform_conformance/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"@babel/plugin-transform-private-methods": "^7.25.9",
2020
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
2121
"@babel/runtime": "^7.26.0"
22+
},
23+
"dependencies": {
24+
"@babel/plugin-transform-typescript": "^7.26.3"
2225
}
2326
}

tasks/transform_conformance/update_fixtures.mjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ const CLASS_PLUGINS = [
3737

3838
const PACKAGES_PATH = pathJoin(import.meta.dirname, '../coverage/babel/packages');
3939

40+
// These fixtures transform incorrectly by Babel. Haven't figured out why yet.
41+
const IGNORED_FIXTURES = [
42+
'compile-to-class/constructor-collision-ignores-types',
43+
'compile-to-class/constructor-collision-ignores-types-loose'
44+
]
45+
4046
// Copied from `@babel/helper-transform-fixture-test-runner`
4147
const EXTERNAL_HELPERS_VERSION = '7.100.0';
4248

@@ -53,6 +59,10 @@ for (const packageName of PACKAGES) {
5359
* @returns {undefined}
5460
*/
5561
async function updateDir(dirPath, options, hasChangedOptions) {
62+
if (IGNORED_FIXTURES.some(p => dirPath.endsWith(p))) {
63+
return
64+
}
65+
5666
const files = await readdir(dirPath, { withFileTypes: true });
5767

5868
const dirFiles = [],
@@ -149,7 +159,7 @@ function ensureAllClassPluginsEnabled(options) {
149159
}
150160
already_enabled.push(pluginName);
151161
}
152-
});
162+
})
153163

154164
if (already_enabled.length) {
155165
CLASS_PLUGINS.forEach(pluginName => {
@@ -185,6 +195,8 @@ async function transform(inputPath, options) {
185195
delete options.SKIP_ON_PUBLISH;
186196
delete options.SKIP_babel7plugins_babel8core;
187197
delete options.minNodeVersion;
198+
delete options.validateLogs;
199+
delete options.SKIP_ON_PUBLISH;
188200

189201
function prefixName(plugin, type) {
190202
if (Array.isArray(plugin)) {

0 commit comments

Comments
 (0)