Skip to content

Commit

Permalink
deps: npm-packlist@8.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Dec 6, 2023
1 parent 937b7b7 commit 2e5331c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
9 changes: 4 additions & 5 deletions node_modules/npm-packlist/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ class PackWalker extends IgnoreWalker {
'!/package.json',
'/.git',
'/node_modules',
'.npmrc',
'/package-lock.json',
'/yarn.lock',
'/pnpm-lock.yaml',
Expand All @@ -307,12 +308,10 @@ class PackWalker extends IgnoreWalker {
if (files) {
for (let file of files) {
// invert the rule because these are things we want to include
if (file.startsWith('/')) {
if (file.startsWith('./')) {
file = file.slice(1)
} else if (file.startsWith('./')) {
file = file.slice(2)
} else if (file.endsWith('/*')) {
file = file.slice(0, -2)
file = file.slice(0, -1)
}
const inverse = `!${file}`

Expand All @@ -326,7 +325,7 @@ class PackWalker extends IgnoreWalker {
// if we have a file and we know that, it's strictly required
if (stat.isFile()) {
strict.unshift(inverse)
this.requiredFiles.push(file)
this.requiredFiles.push(file.startsWith('/') ? file.slice(1) : file)
} else if (stat.isDirectory()) {
// otherwise, it's a default ignore, and since we got here we know it's not a pattern
// so we include the directory contents
Expand Down
10 changes: 5 additions & 5 deletions node_modules/npm-packlist/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "npm-packlist",
"version": "8.0.0",
"version": "8.0.1",
"description": "Get a list of the files to add from a folder into an npm package",
"directories": {
"test": "test"
},
"main": "lib/index.js",
"dependencies": {
"ignore-walk": "^6.0.0"
"ignore-walk": "^6.0.4"
},
"author": "GitHub Inc.",
"license": "ISC",
Expand All @@ -18,7 +18,7 @@
"devDependencies": {
"@npmcli/arborist": "^6.0.0 || ^6.0.0-pre.0",
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.18.0",
"@npmcli/template-oss": "4.21.2",
"mutate-fs": "^2.1.1",
"tap": "^16.0.1"
},
Expand All @@ -28,7 +28,7 @@
"snap": "tap",
"postsnap": "npm run lintfix --",
"eslint": "eslint",
"lint": "eslint \"**/*.js\"",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",
"npmclilint": "npmcli-lint",
"postlint": "template-oss-check",
Expand All @@ -55,7 +55,7 @@
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.18.0",
"version": "4.21.2",
"publish": true
}
}
10 changes: 5 additions & 5 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"diff": "^5.1.0",
"licensee": "^10.0.0",
"nock": "^13.3.8",
"npm-packlist": "^8.0.0",
"npm-packlist": "^8.0.1",
"remark": "^14.0.2",
"remark-gfm": "^3.0.1",
"remark-github": "^11.2.4",
Expand Down Expand Up @@ -11844,12 +11844,12 @@
}
},
"node_modules/npm-packlist": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.0.tgz",
"integrity": "sha512-ErAGFB5kJUciPy1mmx/C2YFbvxoJ0QJ9uwkCZOeR6CqLLISPZBOiFModAbSXnjjlwW5lOhuhXva+fURsSGJqyw==",
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.1.tgz",
"integrity": "sha512-MQpL27ZrsJQ2kiAuQPpZb5LtJwydNRnI15QWXsf3WHERu4rzjRj6Zju/My2fov7tLuu3Gle/uoIX/DDZ3u4O4Q==",
"inBundle": true,
"dependencies": {
"ignore-walk": "^6.0.0"
"ignore-walk": "^6.0.4"
},
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
"diff": "^5.1.0",
"licensee": "^10.0.0",
"nock": "^13.3.8",
"npm-packlist": "^8.0.0",
"npm-packlist": "^8.0.1",
"remark": "^14.0.2",
"remark-gfm": "^3.0.1",
"remark-github": "^11.2.4",
Expand Down

0 comments on commit 2e5331c

Please sign in to comment.