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

Commit 0c62c07

Browse files
authored
Merge pull request #100 from netlify/feat/improve-prepare-logs
2 parents 66cc4ce + ea6d189 commit 0c62c07

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

lib/steps/prepareFolders.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@ const { NETLIFY_PUBLISH_PATH, NETLIFY_FUNCTIONS_PATH } = require("../config");
55
// Empty existing publish and functions folders
66
const prepareFolders = ({ functionsPath, publishPath }) => {
77
logTitle("🚀 Next on Netlify 🚀");
8-
log(" ", "Functions directory: ", functionsPath);
9-
log(" ", "Publish directory: ", publishPath);
10-
log(" ", "Make sure these are set in your netlify.toml file.");
8+
9+
if (functionsPath === NETLIFY_FUNCTIONS_PATH) {
10+
log(" ", "Functions directory: ", functionsPath);
11+
}
12+
if (publishPath === NETLIFY_PUBLISH_PATH) {
13+
log(" ", "Publish directory: ", publishPath);
14+
}
15+
if (
16+
functionsPath === NETLIFY_FUNCTIONS_PATH ||
17+
publishPath === NETLIFY_PUBLISH_PATH
18+
) {
19+
log(" ", "Make sure these are set in your netlify.toml file.");
20+
}
1121

1222
if (publishPath === NETLIFY_PUBLISH_PATH) emptyDirSync(publishPath);
1323
if (functionsPath === NETLIFY_FUNCTIONS_PATH) emptyDirSync(functionsPath);

0 commit comments

Comments
 (0)