Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-05-09 19:26:11 +0300
committerGitHub <noreply@github.com>2022-05-09 19:26:11 +0300
commitd58bf40abf7c3ff8ae400f50e5e5a19c33138707 (patch)
tree8654a083279f917742b3cf9707f8f1524bf5fbe9 /node_modules
parent38cf29a0054544c575b6bce953f1d433dbb6a3b5 (diff)
deps: npm-packlist@5.0.3 (#4856)
* Strip leading ./ from files entries
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/npm-packlist/lib/index.js4
-rw-r--r--node_modules/npm-packlist/package.json6
2 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/npm-packlist/lib/index.js b/node_modules/npm-packlist/lib/index.js
index 7e4093dfb..c7b0db5f6 100644
--- a/node_modules/npm-packlist/lib/index.js
+++ b/node_modules/npm-packlist/lib/index.js
@@ -242,8 +242,8 @@ class Walker extends IgnoreWalker {
if (excl) {
pattern = pattern.slice(excl[0].length)
}
- // 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
const negate = excl && excl[0].length % 2 === 1
set.push({ pattern, negate })
diff --git a/node_modules/npm-packlist/package.json b/node_modules/npm-packlist/package.json
index ab5e46359..e79d1d4b8 100644
--- a/node_modules/npm-packlist/package.json
+++ b/node_modules/npm-packlist/package.json
@@ -1,6 +1,6 @@
{
"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",
"directories": {
"test": "test"
@@ -20,7 +20,7 @@
],
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
- "@npmcli/template-oss": "3.4.1",
+ "@npmcli/template-oss": "3.4.2",
"mutate-fs": "^2.1.1",
"tap": "^16.0.1"
},
@@ -56,6 +56,6 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
- "version": "3.4.1"
+ "version": "3.4.2"
}
}