npm-packlist 5.0.1 → 5.0.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.
- package/lib/index.js +2 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -31,6 +31,7 @@ const packageMustHavesRE = new RegExp(`^(${packageMustHaveFileNames})(\\..*[^~$]
|
|
|
31
31
|
|
|
32
32
|
const fs = require('fs')
|
|
33
33
|
const glob = require('glob')
|
|
34
|
+
const globify = pattern => pattern.split('\\').join('/')
|
|
34
35
|
|
|
35
36
|
const pathHasPkg = (input) => {
|
|
36
37
|
if (!input.startsWith('node_modules/')) {
|
|
@@ -428,7 +429,7 @@ class Walker extends IgnoreWalker {
|
|
|
428
429
|
}
|
|
429
430
|
|
|
430
431
|
globFiles (pattern, cb) {
|
|
431
|
-
glob(pattern, { dot: true, cwd: this.path, nocase: true }, cb)
|
|
432
|
+
glob(globify(pattern), { dot: true, cwd: this.path, nocase: true }, cb)
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
readPackageJson (entries) {
|