Skip to content

Commit 2e5331c

Browse files
committedDec 6, 2023
deps: npm-packlist@8.0.1
1 parent 937b7b7 commit 2e5331c

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed
 

‎node_modules/npm-packlist/lib/index.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ class PackWalker extends IgnoreWalker {
298298
'!/package.json',
299299
'/.git',
300300
'/node_modules',
301+
'.npmrc',
301302
'/package-lock.json',
302303
'/yarn.lock',
303304
'/pnpm-lock.yaml',
@@ -307,12 +308,10 @@ class PackWalker extends IgnoreWalker {
307308
if (files) {
308309
for (let file of files) {
309310
// invert the rule because these are things we want to include
310-
if (file.startsWith('/')) {
311+
if (file.startsWith('./')) {
311312
file = file.slice(1)
312-
} else if (file.startsWith('./')) {
313-
file = file.slice(2)
314313
} else if (file.endsWith('/*')) {
315-
file = file.slice(0, -2)
314+
file = file.slice(0, -1)
316315
}
317316
const inverse = `!${file}`
318317

@@ -326,7 +325,7 @@ class PackWalker extends IgnoreWalker {
326325
// if we have a file and we know that, it's strictly required
327326
if (stat.isFile()) {
328327
strict.unshift(inverse)
329-
this.requiredFiles.push(file)
328+
this.requiredFiles.push(file.startsWith('/') ? file.slice(1) : file)
330329
} else if (stat.isDirectory()) {
331330
// otherwise, it's a default ignore, and since we got here we know it's not a pattern
332331
// so we include the directory contents

‎node_modules/npm-packlist/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "npm-packlist",
3-
"version": "8.0.0",
3+
"version": "8.0.1",
44
"description": "Get a list of the files to add from a folder into an npm package",
55
"directories": {
66
"test": "test"
77
},
88
"main": "lib/index.js",
99
"dependencies": {
10-
"ignore-walk": "^6.0.0"
10+
"ignore-walk": "^6.0.4"
1111
},
1212
"author": "GitHub Inc.",
1313
"license": "ISC",
@@ -18,7 +18,7 @@
1818
"devDependencies": {
1919
"@npmcli/arborist": "^6.0.0 || ^6.0.0-pre.0",
2020
"@npmcli/eslint-config": "^4.0.0",
21-
"@npmcli/template-oss": "4.18.0",
21+
"@npmcli/template-oss": "4.21.2",
2222
"mutate-fs": "^2.1.1",
2323
"tap": "^16.0.1"
2424
},
@@ -28,7 +28,7 @@
2828
"snap": "tap",
2929
"postsnap": "npm run lintfix --",
3030
"eslint": "eslint",
31-
"lint": "eslint \"**/*.js\"",
31+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
3232
"lintfix": "npm run lint -- --fix",
3333
"npmclilint": "npmcli-lint",
3434
"postlint": "template-oss-check",
@@ -55,7 +55,7 @@
5555
},
5656
"templateOSS": {
5757
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
58-
"version": "4.18.0",
58+
"version": "4.21.2",
5959
"publish": true
6060
}
6161
}

‎package-lock.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
"diff": "^5.1.0",
180180
"licensee": "^10.0.0",
181181
"nock": "^13.3.8",
182-
"npm-packlist": "^8.0.0",
182+
"npm-packlist": "^8.0.1",
183183
"remark": "^14.0.2",
184184
"remark-gfm": "^3.0.1",
185185
"remark-github": "^11.2.4",
@@ -11844,12 +11844,12 @@
1184411844
}
1184511845
},
1184611846
"node_modules/npm-packlist": {
11847-
"version": "8.0.0",
11848-
"resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.0.tgz",
11849-
"integrity": "sha512-ErAGFB5kJUciPy1mmx/C2YFbvxoJ0QJ9uwkCZOeR6CqLLISPZBOiFModAbSXnjjlwW5lOhuhXva+fURsSGJqyw==",
11847+
"version": "8.0.1",
11848+
"resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-8.0.1.tgz",
11849+
"integrity": "sha512-MQpL27ZrsJQ2kiAuQPpZb5LtJwydNRnI15QWXsf3WHERu4rzjRj6Zju/My2fov7tLuu3Gle/uoIX/DDZ3u4O4Q==",
1185011850
"inBundle": true,
1185111851
"dependencies": {
11852-
"ignore-walk": "^6.0.0"
11852+
"ignore-walk": "^6.0.4"
1185311853
},
1185411854
"engines": {
1185511855
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
"diff": "^5.1.0",
211211
"licensee": "^10.0.0",
212212
"nock": "^13.3.8",
213-
"npm-packlist": "^8.0.0",
213+
"npm-packlist": "^8.0.1",
214214
"remark": "^14.0.2",
215215
"remark-gfm": "^3.0.1",
216216
"remark-github": "^11.2.4",

0 commit comments

Comments
 (0)
Please sign in to comment.