Skip to content

Commit 934c4f7

Browse files
Jpoliachikstaltz
authored andcommitted
plugin: use lstatSync instead of statSync
1 parent 8da548c commit 934c4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/patch-package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function visitPackageJSON(folderPath)
3030
for (var i in files) {
3131
let name = files[i];
3232
let filePath = path.join(folderPath, files[i]);
33-
if(fs.statSync(filePath).isDirectory()) {
33+
if (fs.lstatSync(filePath).isDirectory()) {
3434
visitPackageJSON(filePath);
3535
} else {
3636
if (name === 'package.json') {

0 commit comments

Comments
 (0)