From 2e5331c75df8606b1f92bf61c8612f5e7b0274aa Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 6 Dec 2023 11:01:35 -0800 Subject: [PATCH] deps: npm-packlist@8.0.1 --- node_modules/npm-packlist/lib/index.js | 9 ++++----- node_modules/npm-packlist/package.json | 10 +++++----- package-lock.json | 10 +++++----- package.json | 2 +- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/node_modules/npm-packlist/lib/index.js b/node_modules/npm-packlist/lib/index.js index 7577cba0b865d..8445925ae3046 100644 --- a/node_modules/npm-packlist/lib/index.js +++ b/node_modules/npm-packlist/lib/index.js @@ -298,6 +298,7 @@ class PackWalker extends IgnoreWalker { '!/package.json', '/.git', '/node_modules', + '.npmrc', '/package-lock.json', '/yarn.lock', '/pnpm-lock.yaml', @@ -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}` @@ -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 diff --git a/node_modules/npm-packlist/package.json b/node_modules/npm-packlist/package.json index 460ca7e30ad23..5f413550e4e72 100644 --- a/node_modules/npm-packlist/package.json +++ b/node_modules/npm-packlist/package.json @@ -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", @@ -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" }, @@ -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", @@ -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 } } diff --git a/package-lock.json b/package-lock.json index d0fd84fbe1e1f..6424f4117777e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -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" diff --git a/package.json b/package.json index 28e34cdb05a76..bd953bc35a072 100644 --- a/package.json +++ b/package.json @@ -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",