Skip to content

Commit fe72c71

Browse files
committed
fix: @putout/plugin-esm: resolve-imported-file: rename
1 parent 766298d commit fe72c71

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/plugin-esm/lib/resolve-imported-file/get-imports-source/fixture/get-imports.js renamed to packages/plugin-esm/lib/resolve-imported-file/get-imports/fixture/get-imports.js

File renamed without changes.

packages/plugin-esm/lib/resolve-imported-file/get-imports-source/index.js renamed to packages/plugin-esm/lib/resolve-imported-file/get-imports/index.js

File renamed without changes.

packages/plugin-esm/lib/resolve-imported-file/get-imports-source/index.spec.js renamed to packages/plugin-esm/lib/resolve-imported-file/get-imports/index.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ import * as plugin from './index.js';
33

44
const test = createTest(import.meta.url, {
55
plugins: [
6-
['get-imports-source', plugin],
6+
['get-imports', plugin],
77
],
88
});
99

10-
test('putout: esm: resolve-imported-file: report: get-imports', (t) => {
10+
test('putout: esm: resolve-imported-file: get-imports: report: get-imports', (t) => {
1111
t.report('get-imports', `./a`);
1212
t.end();
1313
});
1414

15-
test('putout: esm: resolve-imported-file: no report: external', (t) => {
15+
test('putout: esm: resolve-imported-file: get-imports: no report: external', (t) => {
1616
t.noReportCode(`import a from 'a'`);
1717
t.end();
1818
});
1919

20-
test('putout: esm: resolve-imported-file: no report: js', (t) => {
20+
test('putout: esm: resolve-imported-file: get-imports: no report: js', (t) => {
2121
t.noReportCode(`import a from './a.js'`);
2222
t.end();
2323
});

packages/plugin-esm/lib/resolve-imported-file/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
transform,
66
operator,
77
} from 'putout';
8-
import * as getImportsSource from './get-imports-source/index.js';
8+
import * as getImports from './get-imports/index.js';
99
import * as changeImports from './change-imports/index.js';
1010

1111
const {
@@ -52,7 +52,7 @@ export const scan = (rootPath, {push, trackFile}) => {
5252

5353
const places = transform(ast, content, {
5454
plugins: [
55-
['get-imports-source', getImportsSource],
55+
['get-imports-source', getImports],
5656
],
5757
});
5858

0 commit comments

Comments
 (0)