Skip to content

Commit

Permalink
Add missing cname option not passed to the config
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBAnders committed Nov 22, 2023
1 parent 28b7caf commit 81ac719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions test/bin/gh-pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 81ac719

Please sign in to comment.