Skip to content

Commit ba269a7

Browse files
Fix integration tests
1 parent 17d3ca0 commit ba269a7

File tree

18 files changed

+610
-23
lines changed

18 files changed

+610
-23
lines changed

β€Žflow-typed/npm/@swc/core_v1.x.x.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ declare module '@swc/core' {
293293
* presence of the filename.
294294
* - Options like "test", "exclude", and "ignore" require the filename
295295
* for string/RegExp matching.
296-
* - .swcrc files are loaded relative to the file being compiled.
296+
* - swc.config.js files are loaded relative to the file being compiled.
297297
* If this option is omitted, Swc will behave as if swcrc: false has been set.
298298
*/
299299
filename?: string,
@@ -353,19 +353,19 @@ declare module '@swc/core' {
353353
envName?: string,
354354

355355
/**
356-
* Defaults to searching for a default `.swcrc` file, but can
356+
* Defaults to searching for a default `swc.config.js` file, but can
357357
* be passed the path of any JS or JSON5 config file.
358358
*
359359
*
360-
* NOTE: This option does not affect loading of .swcrc files,
361-
* so while it may be tempting to do configFile: "./foo/.swcrc",
362-
* it is not recommended. If the given .swcrc is loaded via the
360+
* NOTE: This option does not affect loading of swc.config.js files,
361+
* so while it may be tempting to do configFile: "./foo/swc.config.js",
362+
* it is not recommended. If the given swc.config.js is loaded via the
363363
* standard file-relative logic, you'll end up loading the same
364364
* config file twice, merging it with itself. If you are linking
365365
* a specific config file, it is recommended to stick with a
366366
* naming scheme that is independent of the "swcrc" name.
367367
*
368-
* Defaults to `path.resolve(opts.root, ".swcrc")`
368+
* Defaults to `path.resolve(opts.root, "swc.config.js")`
369369
*/
370370
configFile?: string | boolean,
371371

@@ -374,7 +374,7 @@ declare module '@swc/core' {
374374
*
375375
* A swcrc value passed in the programmatic options will override one set within a configuration file.
376376
*
377-
* Note: .swcrc files are only loaded if the current "filename" is inside of
377+
* Note: swc.config.js files are only loaded if the current "filename" is inside of
378378
* a package that matches one of the "swcrcRoots" packages.
379379
*
380380
*
@@ -494,7 +494,7 @@ declare module '@swc/core' {
494494
|};
495495
declare export type Swcrc = Config | Config[];
496496
/**
497-
* .swcrc
497+
* swc.config.js
498498
*/
499499
declare export type Config = {|
500500
/**

β€Žpackages/core/integration-tests/test/integration/swc-transformer/.swcrc

-12
This file was deleted.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/.yarn-integrity

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/counter/CHANGELOG.md

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/counter/README.md

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/counter/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/counter/package.json

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/plugin-remove-console/CHANGELOG.md

+103
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackages/core/integration-tests/test/integration/swc-transformer/node_modules/@swc/plugin-remove-console/Cargo.toml

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)