Skip to content

Commit 7c97b57

Browse files
committed
feature: @putout/plugin-putout: apply-namespace-specifier: parent directory
1 parent 6adaa76 commit 7c97b57

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {createTest} from '@putout/test';
22

3-
import plugin from '../lib/apply-entries.js';
43
import rmUnused from '@putout/x-remove-unused-variables';
54
import progress, {maybeZero} from '../lib/memory.js';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import * as strictMode from '../strict-mode/index.js';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import strictMode from '../strict-mode/index.js';

packages/plugin-putout/lib/apply-namespace-specifier/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const traverse = ({push, listStore, pathStore}) => ({
2020
'@putout/plugin-',
2121
'./index.js',
2222
'../lib/index.js',
23+
'../',
2324
],
2425
}),
2526
'Program': {

packages/plugin-putout/lib/apply-namespace-specifier/index.spec.js

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ test('packages: apply-namaspace-specifier: transform: external', (t) => {
3737
t.end();
3838
});
3939

40+
test('packages: apply-namaspace-specifier: transform: parent', (t) => {
41+
t.transform('parent');
42+
t.end();
43+
});
44+
4045
test('packages: apply-namaspace-specifier: no report: alot', (t) => {
4146
t.noReport('alot');
4247
t.end();

0 commit comments

Comments
 (0)