npm-packlist 5.0.2 → 5.0.3
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 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -242,8 +242,8 @@ class Walker extends IgnoreWalker {
|
|
|
242
242
|
if (excl) {
|
|
243
243
|
pattern = pattern.slice(excl[0].length)
|
|
244
244
|
}
|
|
245
|
-
// strip off any / from the start of the pattern. /foo => foo
|
|
246
|
-
pattern = pattern.replace(
|
|
245
|
+
// strip off any / or ./ from the start of the pattern. /foo => foo, ./foo => foo
|
|
246
|
+
pattern = pattern.replace(/^\.?\/+/, '')
|
|
247
247
|
// an odd number of ! means a negated pattern. !!foo ==> foo
|
|
248
248
|
const negate = excl && excl[0].length % 2 === 1
|
|
249
249
|
set.push({ pattern, negate })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-packlist",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
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"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@npmcli/eslint-config": "^3.0.1",
|
|
23
|
-
"@npmcli/template-oss": "3.4.
|
|
23
|
+
"@npmcli/template-oss": "3.4.2",
|
|
24
24
|
"mutate-fs": "^2.1.1",
|
|
25
25
|
"tap": "^16.0.1"
|
|
26
26
|
},
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
},
|
|
57
57
|
"templateOSS": {
|
|
58
58
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
59
|
-
"version": "3.4.
|
|
59
|
+
"version": "3.4.2"
|
|
60
60
|
}
|
|
61
61
|
}
|