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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-packlist",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Get a list of the files to add from a folder into an npm package",
5
5
  "directories": {
6
6
  "test": "test"