diff options
author | John O'Sullivan <j.osullivan42@gmail.com> | 2019-04-25 01:57:05 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-06-30 06:23:54 +0300 |
commit | f5857e263ccf5648ce7d4260c5868e3e940a7258 (patch) | |
tree | 6dd206c242a38c932c0120c9e4bc3a5e489a201c /doc | |
parent | 8d4effb654e3ea8a7d976111da542339154dc841 (diff) |
Clarify usage of bundledDependencies
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/files/package.json.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/files/package.json.md b/doc/files/package.json.md index 95e77d34c..6324caf64 100644 --- a/doc/files/package.json.md +++ b/doc/files/package.json.md @@ -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. |