From d5394fcf1bc3bccd9227b5e4c49928c278f1937d Mon Sep 17 00:00:00 2001 From: Brett Kyle Date: Fri, 2 Dec 2022 00:25:06 +0000 Subject: [PATCH] Ignore .eslintrc.js file during build The `.eslintrc.js` was being copied to `public/deploy`. --- lib/metalsmith.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/metalsmith.js b/lib/metalsmith.js index b227463e5b..033da0c669 100644 --- a/lib/metalsmith.js +++ b/lib/metalsmith.js @@ -57,6 +57,9 @@ module.exports = metalsmith(__dirname) // __dirname defined by node.js: name of // source directory .source(path.join('../', paths.source)) + // Ignore internal config + .ignore('.eslintrc.js') + // destination directory .destination(path.join('../', paths.public))