copy-folder-util 1.1.5 → 1.1.6
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.
- package/README.md +1 -1
- package/bin/cli.js +4 -4
- package/dist/copy-folder.d.ts +1 -1
- package/dist/copy-folder.js +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ import { copyFolder } from 'copy-folder-util';
|
|
|
81
81
|
|
|
82
82
|
const options = { fileExtensions: ['.html', '.js'] };
|
|
83
83
|
const results = copyFolder.cp('src/web', 'docs/api-manual', options);
|
|
84
|
-
console.
|
|
84
|
+
console.info('Number of files copied:', results.count);
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
See the **TypeScript Declarations** at the top of [copy-folder.ts](src/copy-folder.ts) for documentation.
|
package/bin/cli.js
CHANGED
|
@@ -32,10 +32,10 @@ const target = cli.params[1];
|
|
|
32
32
|
|
|
33
33
|
// Copy Folder
|
|
34
34
|
const error =
|
|
35
|
-
cli.invalidFlag ?
|
|
36
|
-
!source ?
|
|
37
|
-
!target ?
|
|
38
|
-
cli.
|
|
35
|
+
cli.invalidFlag ? cli.invalidFlagMsg :
|
|
36
|
+
!source ? 'Missing source folder.' :
|
|
37
|
+
!target ? 'Missing target folder.' :
|
|
38
|
+
cli.paramCount > 2 ? 'Extraneous parameter: ' + cli.params[2] :
|
|
39
39
|
null;
|
|
40
40
|
if (error)
|
|
41
41
|
throw new Error('[copy-folder-util] ' + error);
|
package/dist/copy-folder.d.ts
CHANGED
package/dist/copy-folder.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copy-folder-util",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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",
|
|
@@ -61,24 +61,24 @@
|
|
|
61
61
|
"test": "mocha spec/*.spec.js"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"chalk": "~5.
|
|
65
|
-
"cli-argv-util": "~1.
|
|
64
|
+
"chalk": "~5.6",
|
|
65
|
+
"cli-argv-util": "~1.3",
|
|
66
66
|
"fancy-log": "~2.0",
|
|
67
67
|
"slash": "~5.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@eslint/js": "~9.
|
|
70
|
+
"@eslint/js": "~9.36",
|
|
71
71
|
"@types/fancy-log": "~2.0",
|
|
72
|
-
"@types/node": "~
|
|
73
|
-
"add-dist-header": "~1.
|
|
72
|
+
"@types/node": "~24.5",
|
|
73
|
+
"add-dist-header": "~1.5",
|
|
74
74
|
"assert-deep-strict-equal": "~1.2",
|
|
75
|
-
"copy-file-util": "~1.
|
|
76
|
-
"eslint": "~9.
|
|
75
|
+
"copy-file-util": "~1.3",
|
|
76
|
+
"eslint": "~9.36",
|
|
77
77
|
"jshint": "~2.13",
|
|
78
|
-
"mocha": "~11.
|
|
78
|
+
"mocha": "~11.7",
|
|
79
79
|
"rimraf": "~6.0",
|
|
80
80
|
"run-scripts-util": "~1.3",
|
|
81
|
-
"typescript": "~5.
|
|
82
|
-
"typescript-eslint": "~8.
|
|
81
|
+
"typescript": "~5.9",
|
|
82
|
+
"typescript-eslint": "~8.44"
|
|
83
83
|
}
|
|
84
84
|
}
|