Skip to content

Commit

Permalink
fix: copy hide file mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sky committed Jul 14, 2020
1 parent a772258 commit eb3f546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ const downloadTemplate = (cli, templateInfo, options) => {
files.forEach(name => {
const file = path.join(absSourceDir, name);
if (fs.statSync(file).isDirectory()) {
d.copy(file, dist);
d.green(`create ${d.chalk.yellow(templateInfo.name)} successfully [${d.chalk.yellow(file)}]`);
d.copy(file, dist, { hide: false });
d.green(`create ${d.chalk.yellow(templateInfo.name)} successfully [${d.chalk.yellow(path.join(dist, name))}]`);
} else {
const content = artTemplate(file, { classname });
const filepath = path.resolve(dist, filename || name);
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"name": "@easy-team/easywebpack-cli",
<<<<<<< HEAD
"version": "4.5.0",
=======
"version": "4.5.1",
>>>>>>> next
"version": "4.5.2",
"description": "Webpack Building Command Line And Boilerplate Init Tool",
"bin": {
"easywebpack": "bin/cli.js",
Expand Down

0 comments on commit eb3f546

Please # to comment.