File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
node_modules/npm-packlist Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -384,6 +384,11 @@ class PackWalker extends IgnoreWalker {
384384
385385 // get a reference to the node we're bundling
386386 const node = this . tree . edgesOut . get ( dep ) . to
387+ // if there's no node, this is most likely an optional dependency that hasn't been
388+ // installed. just skip it.
389+ if ( ! node ) {
390+ continue
391+ }
387392 // we use node.path for the path because we want the location the node was linked to,
388393 // not where it actually lives on disk
389394 const path = node . path
Original file line number Diff line number Diff line change 11{
22 "name" : " npm-packlist" ,
3- "version" : " 7.0.3 " ,
3+ "version" : " 7.0.4 " ,
44 "description" : " Get a list of the files to add from a folder into an npm package" ,
55 "directories" : {
66 "test" : " test"
Original file line number Diff line number Diff line change 168168 "@npmcli/template-oss": "4.11.0",
169169 "licensee": "^9.0.0",
170170 "nock": "^13.2.4",
171- "npm-packlist": "^7.0.3 ",
171+ "npm-packlist": "^7.0.4 ",
172172 "remark": "^14.0.2",
173173 "remark-gfm": "^3.0.1",
174174 "remark-github": "^11.2.4",
96699669 }
96709670 },
96719671 "node_modules/npm-packlist": {
9672- "version": "7.0.3 ",
9673- "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.3 .tgz",
9674- "integrity": "sha512-a/TxELNw489Y7ZzXe7lRoXhKErNNgguYgBdW8nPXLcPMnMOCANiEjCwC1XDH6/5K6hkjuTrEkwtoT9C/zX3jRg ==",
9672+ "version": "7.0.4 ",
9673+ "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.4 .tgz",
9674+ "integrity": "sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q ==",
96759675 "inBundle": true,
96769676 "dependencies": {
96779677 "ignore-walk": "^6.0.0"
Original file line number Diff line number Diff line change 201201 "@npmcli/template-oss" : " 4.11.0" ,
202202 "licensee" : " ^9.0.0" ,
203203 "nock" : " ^13.2.4" ,
204- "npm-packlist" : " ^7.0.3 " ,
204+ "npm-packlist" : " ^7.0.4 " ,
205205 "remark" : " ^14.0.2" ,
206206 "remark-gfm" : " ^3.0.1" ,
207207 "remark-github" : " ^11.2.4" ,
You can’t perform that action at this time.
0 commit comments