Skip to content

Commit

Permalink
refactor(create): do not expand ~ to $HOME anymore (#490)
Browse files Browse the repository at this point in the history
Expanding ~ is a shell feature and should not be done by us.
  • Loading branch information
raphinesse authored Nov 11, 2019
1 parent fb6bc3e commit 11ce340
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,6 @@ function create ([_, dir, id, name], args) {
);
}

// Resolve tilda
// TODO: move to create and use sindresorhus/untildify
if (customWww.substr(0, 1) === '~') { customWww = path.join(process.env.HOME, customWww.substr(1)); }

// Template config
cfg.lib = {};
cfg.lib.www = {
Expand Down

0 comments on commit 11ce340

Please sign in to comment.