npm-packlist
Advanced tools
Comparing version 1.4.5 to 1.4.6
13
index.js
@@ -54,2 +54,5 @@ 'use strict' | ||
// There may be others, but :?|<> are handled by node-tar | ||
const nameIsBadForWindows = file => /\*/.test(file) | ||
// a decorator that applies our custom rules to an ignore walker | ||
@@ -195,2 +198,12 @@ const npmWalker = Class => class Walker extends Class { | ||
// override parent stat function to completely skip any filenames | ||
// that will break windows entirely. | ||
// XXX(isaacs) Next major version should make this an error instead. | ||
stat (entry, file, dir, then) { | ||
if (nameIsBadForWindows(entry)) | ||
then() | ||
else | ||
super.stat(entry, file, dir, then) | ||
} | ||
// override parent onstat function to nix all symlinks | ||
@@ -197,0 +210,0 @@ onstat (st, entry, file, dir, then) { |
{ | ||
"name": "npm-packlist", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"description": "Get a list of the files to add from a folder into an npm package", | ||
@@ -5,0 +5,0 @@ "directories": { |
12990
253