You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates bundledDependencies package.json value using values of the dependencies property. Updates package.json definition using the generated bundledDependencies value.
Generates bundledDependenciespackage.json value using values of the dependencies property. Updates package.json definition using the generated bundledDependencies value.
Commands:
list-bundled-dependencies Lists names of bundled dependencies.
update Updates package.json bundledDependencies
definition.
Options:
--help Show help [boolean]
bundle-dependencies update --help
Options:
--help Show help [boolean]
--exclude A space-separated list of dependencies not to include in the
bundledDependencies definition. [array] [default: []]
Usage
To simply update bundledDependencies of the package.json in the current working directory, execute the script:
npm run bundle-dependencies update
Publishing
When publishing a package using bundledDependencies property, make sure that your node_modules/ directory includes only bundled dependencies, i.e. the module must be installed using npm install --production [list of bundled dependencies]. Use this script to do it:
Generates bundledDependencies package.json value using values of the dependencies property. Updates package.json definition using the generated bundledDependencies value.