From 1c60556b34b99ebece5b22911e6f049feb37d746 Mon Sep 17 00:00:00 2001 From: WillBAnders Date: Wed, 20 Dec 2023 22:06:02 -0500 Subject: [PATCH] Add debug logs for nojekyll/cname creation as recommended by @paymand --- lib/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index f74e6fd0..eef52a2d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -183,13 +183,15 @@ exports.publish = function publish(basePath, config, callback) { } }) .then((git) => { - log('Copying files'); if (options.nojekyll) { + log('Creating .nojekyll'); fs.createFileSync(path.join(git.cwd, '.nojekyll')); } if (options.cname) { + log('Creating CNAME for %s', options.cname); fs.writeFileSync(path.join(git.cwd, 'CNAME'), options.cname); } + log('Copying files'); return copy(files, basePath, path.join(git.cwd, options.dest)).then( function () { return git;