Commit e4a0e5b
module: fix check for package.json at volume root
This patch converts the "read package scope" algorithm's while loop
into a do-while loop enabling items at the filesystem root dir to
be considered within the scope of a sibling package.json also at the
filesystem root dir.
Fixes: #33438
Co-authored-by: Guy Bedford <guybedford@gmail.com>
PR-URL: #34595
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>1 parent 2781f64 commit e4a0e5bCopy full SHA for e4a0e5b
Expand file treeCollapse file tree
2 files changed
+13
-10
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1864 | 1864 | |
1865 | 1865 | |
1866 | 1866 | |
| 1867 | + |
1867 | 1868 | |
1868 | 1869 | |
1869 | 1870 | |
1870 | 1871 | |
1871 | | - |
1872 | 1872 | |
1873 | 1873 | |
1874 | 1874 | |
|
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+12-9Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
48 | 51 | |
49 | 52 | |
50 | 53 | |
| ||
62 | 65 | |
63 | 66 | |
64 | 67 | |
| 68 | + |
65 | 69 | |
66 | 70 | |
67 | 71 | |
| ||
282 | 286 | |
283 | 287 | |
284 | 288 | |
285 | | - |
| 289 | + |
286 | 290 | |
287 | | - |
288 | | - |
289 | | - |
290 | | - |
291 | | - |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
292 | 295 | |
293 | | - |
| 296 | + |
294 | 297 | |
| 298 | + |
295 | 299 | |
296 | | - |
297 | 300 | |
298 | | - |
| 301 | + |
299 | 302 | |
300 | 303 | |
301 | 304 | |
|
0 commit comments