Comparing version 2.3.0 to 2.4.1
@@ -6,2 +6,3 @@ 'use strict'; | ||
var mkdirp = require('mkdirp'); | ||
var untildify = require('untildify'); | ||
var through = require('through2').obj; | ||
@@ -93,3 +94,4 @@ var noms = require('noms').obj; | ||
} | ||
toStream(input) | ||
outDir = outDir.startsWith('~') ? untildify(outDir) : outDir; | ||
toStream(input.map(function(srcP) {return srcP.startsWith('~') ? untildify(srcP) : srcP;})) | ||
.pipe(through(function (pathName, _, next) { | ||
@@ -96,0 +98,0 @@ var self = this; |
{ | ||
"name": "copyfiles", | ||
"version": "2.3.0", | ||
"version": "2.4.1", | ||
"description": "copy some files", | ||
@@ -21,3 +21,4 @@ "main": "index.js", | ||
"through2": "^2.0.1", | ||
"yargs": "^15.3.1" | ||
"untildify": "^4.0.0", | ||
"yargs": "^16.1.0" | ||
}, | ||
@@ -24,0 +25,0 @@ "repository": { |
@@ -106,1 +106,4 @@ copyfiles [![Build Status](https://travis-ci.org/calvinmetcalf/copyfiles.svg)](https://travis-ci.org/calvinmetcalf/copyfiles) | ||
takes an array of paths, last one is the destination path, also takes an optional argument which the -u option if a number, otherwise if it's `true` it's the flat option or if it is an object it is a hash of the various options (the long version e.g. up, all, flat, exclude, error, verbose, follow, and soft) | ||
### Tilde support for home directory | ||
when the src/dest path start with tilde for home directory under windows, please make sure -u or -f is added in options or use copyup command. if not you will get `Error: Illegal characters in path.` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22869
499
109
7
+ Addeduntildify@^4.0.0
+ Addedcliui@7.0.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addeduntildify@4.0.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcliui@6.0.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@6.2.0(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyargs@15.4.1(transitive)
- Removedyargs-parser@18.1.3(transitive)
Updatedyargs@^16.1.0