Skip to content

Commit

Permalink
fix: include dotfiles in the deployment by default
Browse files Browse the repository at this point in the history
Whenever a user specifies a directory, they expect the dotfiles to be served as they exist on the file system. No web standards or conventions specifies otherwise. The previous default was surprising and as you see in the issue tschaub#315, has caused issues for many users.

This PR changes the default to true making this behaviour opt-in.
  • Loading branch information
aminya committed Aug 26, 2024
1 parent 202aa11 commit 70886c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function main(args) {
)
.option('-g, --tag <tag>', 'add tag to commit')
.option('--git <git>', 'Path to git executable', ghpages.defaults.git)
.option('-t, --dotfiles', 'Include dotfiles')
.option('-t, --dotfiles', 'Include dotfiles', ghpages.defaults.dotfiles)
.option('--nojekyll', 'Add a .nojekyll file to disable Jekyll')
.option(
'--cname <CNAME>',
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports.defaults = {
add: false,
git: 'git',
depth: 1,
dotfiles: false,
dotfiles: true,
branch: 'gh-pages',
remote: 'origin',
src: '**/*',
Expand Down

0 comments on commit 70886c9

Please sign in to comment.