npm-packlist
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -245,4 +245,4 @@ 'use strict' | ||
} | ||
// strip off any / from the start of the pattern. /foo => foo | ||
pattern = pattern.replace(/^\/+/, '') | ||
// strip off any / or ./ from the start of the pattern. /foo => foo, ./foo => foo | ||
pattern = pattern.replace(/^\.?\/+/, '') | ||
// an odd number of ! means a negated pattern. !!foo ==> foo | ||
@@ -249,0 +249,0 @@ const negate = excl && excl[0].length % 2 === 1 |
{ | ||
"name": "npm-packlist", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Get a list of the files to add from a folder into an npm package", | ||
@@ -23,3 +23,3 @@ "directories": { | ||
"@npmcli/eslint-config": "^3.0.1", | ||
"@npmcli/template-oss": "3.4.1", | ||
"@npmcli/template-oss": "3.4.2", | ||
"mutate-fs": "^2.1.1", | ||
@@ -60,4 +60,4 @@ "tap": "^16.0.1" | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "3.4.1" | ||
"version": "3.4.2" | ||
} | ||
} |
24145