Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 2319348

Browse files
committed
prevent copy of .public to .public
1 parent cd1cf9e commit 2319348

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/steps/copyPublicFiles.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ const copyPublicFiles = (publishPath) => {
88
if (!existsSync(PUBLIC_PATH)) return;
99

1010
// Perform copy operation
11-
logTitle("🌍️ Copying", PUBLIC_PATH, "folder to", publishPath);
12-
copySync(PUBLIC_PATH, publishPath);
11+
if (publishPath !== PUBLIC_PATH) {
12+
logTitle("🌍️ Copying", PUBLIC_PATH, "folder to", publishPath);
13+
copySync(PUBLIC_PATH, publishPath);
14+
}
1315
};
1416

1517
module.exports = copyPublicFiles;

0 commit comments

Comments
 (0)