Skip to content

Commit 44a8310

Browse files
committed
feature: @putout/plugin-putout: declare: removeEmptyDirectory
1 parent 9975fe8 commit 44a8310

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

packages/plugin-putout/lib/declare/fixture/operator-filesystem-fix.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {operator} from 'putout';
22

3+
const {removeEmptyDirectory} = operator;
34
const {getRootDirectory} = operator;
45
const {createNestedDirectory} = operator;
56
const {createDirectory} = operator;
@@ -19,3 +20,4 @@ readDirectory();
1920
createDirectory();
2021
createNestedDirectory();
2122
getRootDirectory();
23+
removeEmptyDirectory(dirPath);

packages/plugin-putout/lib/declare/fixture/operator-filesystem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ readDirectory();
77
createDirectory();
88
createNestedDirectory();
99
getRootDirectory();
10+
removeEmptyDirectory(dirPath);

packages/plugin-putout/lib/declare/operator/filesystem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ module.exports = {
1717
writeFileContent: 'const {writeFileContent} = operator',
1818
copyFile: 'const {copyFile} = operator',
1919
readDirectory: 'const {readDirectory} = operator',
20+
removeEmptyDirectory: 'const {removeEmptyDirectory} = operator',
2021
};

0 commit comments

Comments
 (0)