bundledDependencies – Some projects need to preserve NPM
packages locally or through a single download. For those, this
element allows you to specify an array of package names that will be
bundled with your package when you publish it.
•
config – If you need to have parameters available in the environment
when your package is used, then the config element might do the
trick. Here, you can specify a value like "config" : { "port" :
"8888" } and then in your code you can reference npm_package_
config_port as an environment variable to get the value configured.
•
Do'stlaringiz bilan baham: |