Skip to content

Commit 9305eaa

Browse files
committed
fix: @putout/plugin-putout: apply-exports-to-rename-files: matchFiles -> renameFiles
1 parent 4ce3a7c commit 9305eaa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/plugin-putout/lib/apply-exports-to-rename-files/fixture/apply-exports-to-rename-files-fix.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
report,
44
fix,
55
scan,
6-
} = matchFiles({
6+
} = renameFiles({
77
type: 'module',
88
mask: '*.mjs',
99
rename(name) {

packages/plugin-putout/lib/apply-exports-to-rename-files/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const report = () => `Apply 'exports' to 'renameFiles()`;
22

33
export const replace = () => ({
44
'export default renameFiles(__args)': `{
5-
const {report, fix, scan} = matchFiles(__args);
5+
const {report, fix, scan} = renameFiles(__args);
66
export {
77
report,
88
fix,

packages/plugin-putout/test/fixture/apply-exports-to-rename-files-fix.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {operator} from 'putout';
22

3-
const {matchFiles} = operator;
3+
const {renameFiles} = operator;
44

55
{
66
const {
77
report,
88
fix,
99
scan,
10-
} = matchFiles({
10+
} = renameFiles({
1111
type: 'module',
1212
mask: '*.mjs',
1313
rename(name) {

0 commit comments

Comments
 (0)