npm-packlist 2.1.3 → 2.1.4
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/index.js +2 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -234,11 +234,13 @@ const npmWalker = Class => class Walker extends Class {
|
|
|
234
234
|
for (const {negate, fileList} of results) {
|
|
235
235
|
if (negate) {
|
|
236
236
|
fileList.forEach(f => {
|
|
237
|
+
f = f.replace(/\/+$/, '')
|
|
237
238
|
set.delete(f)
|
|
238
239
|
negates.add(f)
|
|
239
240
|
})
|
|
240
241
|
} else {
|
|
241
242
|
fileList.forEach(f => {
|
|
243
|
+
f = f.replace(/\/+$/, '')
|
|
242
244
|
set.add(f)
|
|
243
245
|
negates.delete(f)
|
|
244
246
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-packlist",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"snap": "tap",
|
|
28
28
|
"preversion": "npm test",
|
|
29
29
|
"postversion": "npm publish",
|
|
30
|
-
"
|
|
30
|
+
"prepublishOnly": "git push origin --follow-tags"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|