-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
656 changed files
with
41,227 additions
and
20,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"libs": [ | ||
], | ||
"plugins": { | ||
"node": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,33 +157,33 @@ In this case, we might expect a folder structure like this: | |
+-- node_modules | ||
+-- blerg (1.2.5) <---[A] | ||
+-- bar (1.2.3) <---[B] | ||
| +-- node_modules | ||
| | `-- baz (2.0.2) <---[C] | ||
| | `-- node_modules | ||
| | `-- quux (3.2.0) | ||
| `-- asdf (2.3.4) | ||
| `-- node_modules | ||
| +-- baz (2.0.2) <---[C] | ||
| | `-- node_modules | ||
| | `-- quux (3.2.0) | ||
| `-- asdf (2.3.4) | ||
`-- baz (1.2.3) <---[D] | ||
`-- node_modules | ||
`-- quux (3.2.0) <---[E] | ||
|
||
Since foo depends directly on [email protected] and [email protected], those are | ||
Since foo depends directly on `[email protected]` and `[email protected]`, those are | ||
installed in foo's `node_modules` folder. | ||
|
||
Even though the latest copy of blerg is 1.3.7, foo has a specific | ||
dependency on version 1.2.5. So, that gets installed at [A]. Since the | ||
parent installation of blerg satisfie's bar's dependency on [email protected], | ||
parent installation of blerg satisfies bar's dependency on `[email protected]`, | ||
it does not install another copy under [B]. | ||
|
||
Bar [B] also has dependencies on baz and asdf, so those are installed in | ||
bar's `node_modules` folder. Because it depends on `[email protected]`, it cannot | ||
re-use the `[email protected]` installed in the parent `node_modules` folder [D], | ||
and must install its own copy [C]. | ||
|
||
Underneath bar, the `baz->quux->bar` dependency creates a cycle. | ||
However, because `bar` is already in `quux`'s ancestry [B], it does not | ||
Underneath bar, the `baz -> quux -> bar` dependency creates a cycle. | ||
However, because bar is already in quux's ancestry [B], it does not | ||
unpack another copy of bar into that folder. | ||
|
||
Underneath `foo->baz` [D], quux's [E] folder tree is empty, because its | ||
Underneath `foo -> baz` [D], quux's [E] folder tree is empty, because its | ||
dependency on bar is satisfied by the parent folder copy installed at [B]. | ||
|
||
For a graphical breakdown of what is installed where, use `npm ls`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.