Skip to content

Commit

Permalink
Clarify usage of bundledDependencies
Browse files Browse the repository at this point in the history
I spent a couple hours debugging the fact that package names in that key aren't supposed to include their versions!  Assumed that it would need to have the same syntax as when running `npm install`.  Thought this would be a good contribution for future readers.
  • Loading branch information
john-osullivan authored and isaacs committed Jun 30, 2019
1 parent 8d4effb commit f5857e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/files/package.json.md
Expand Up @@ -648,7 +648,8 @@ If we define a package.json like this:
we can obtain `awesome-web-framework-1.0.0.tgz` file by running `npm pack`.
This file contains the dependencies `renderized` and `super-streams` which
can be installed in a new project by executing `npm install
awesome-web-framework-1.0.0.tgz`.
awesome-web-framework-1.0.0.tgz`. Note that the package names do not include
any versions, as that information is specified in `dependencies`.

If this is spelled `"bundleDependencies"`, then that is also honored.

Expand Down

0 comments on commit f5857e2

Please sign in to comment.