From 81ac71947d2cfad9c4746b51253da2e69bf50e98 Mon Sep 17 00:00:00 2001 From: WillBAnders Date: Tue, 21 Nov 2023 19:38:16 -0500 Subject: [PATCH] Add missing cname option not passed to the config --- bin/gh-pages.js | 1 + test/bin/gh-pages.spec.js | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bin/gh-pages.js b/bin/gh-pages.js index bf51f2c..9b3b5ad 100755 --- a/bin/gh-pages.js +++ b/bin/gh-pages.js @@ -127,6 +127,7 @@ function main(args) { depth: options.depth, dotfiles: !!options.dotfiles, nojekyll: !!options.nojekyll, + cname: options.cname, add: !!options.add, remove: options.remove, remote: options.remote, diff --git a/test/bin/gh-pages.spec.js b/test/bin/gh-pages.spec.js index e0353fc..61563fc 100644 --- a/test/bin/gh-pages.spec.js +++ b/test/bin/gh-pages.spec.js @@ -47,6 +47,11 @@ describe('gh-pages', () => { dist: 'lib', config: {nojekyll: true}, }, + { + args: ['--dist', 'lib', '--cname', 'CNAME'], + dist: 'lib', + config: {cname: 'CNAME'}, + }, { args: ['--dist', 'lib', '--dest', 'target'], dist: 'lib',