copy-folder-util 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- //! copy-folder-util v1.2.1 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
1
+ //! copy-folder-util v1.2.2 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
2
2
 
3
3
  export type Settings = {
4
4
  basename: string | null;
@@ -1,4 +1,4 @@
1
- //! copy-folder-util v1.2.1 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
1
+ //! copy-folder-util v1.2.2 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
2
2
 
3
3
  import { cliArgvUtil } from 'cli-argv-util';
4
4
  import chalk from 'chalk';
@@ -95,12 +95,11 @@ const copyFolder = {
95
95
  };
96
96
  const settings = { ...defaults, ...options };
97
97
  const name = chalk.gray('copy-folder');
98
- const indent = chalk.gray('|');
99
98
  const ancestor = cliArgvUtil.calcAncestor(results.source, results.target);
100
99
  const infoColor = results.count ? chalk.white : chalk.red.bold;
101
100
  const info = infoColor(`(files: ${results.count}, ${results.duration}ms)`);
102
101
  log(name, ancestor.message, info);
103
- const logFile = (file) => log(name, indent, cliArgvUtil.calcAncestor(file.origin, file.dest).message);
102
+ const logFile = (file, i) => log(name, chalk.magenta(i + 1), cliArgvUtil.calcAncestor(file.origin, file.dest).message);
104
103
  if (!settings.summaryOnly)
105
104
  results.files.forEach(logFile);
106
105
  return results;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copy-folder-util",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Recursively copy files from one folder to another folder (CLI tool designed for use in npm package.json scripts)",
5
5
  "license": "MIT",
6
6
  "type": "module",