Skip to content

Commit 62a6c43

Browse files
committed
chore: build/change-version cleanup
1 parent fc301a4 commit 62a6c43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

build/change-version.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ function walkAsync(directory, excludedDirectories, fileCallback, errback) {
4141
}
4242
if (stats.isSymbolicLink()) {
4343
return
44-
}
45-
else if (stats.isDirectory()) {
44+
} else if (stats.isDirectory()) {
4645
process.nextTick(walkAsync, filepath, excludedDirectories, fileCallback, errback)
47-
}
48-
else if (stats.isFile()) {
46+
} else if (stats.isFile()) {
4947
process.nextTick(fileCallback, filepath)
5048
}
5149
})
@@ -85,7 +83,10 @@ function main(args) {
8583
const newVersion = args[1]
8684
const EXCLUDED_DIRS = new Set([
8785
'.git',
86+
'.idea',
87+
'dist',
8888
'node_modules',
89+
'pug',
8990
'vendor'
9091
])
9192
const INCLUDED_EXTENSIONS = new Set([

0 commit comments

Comments
 (0)