Computes the local node_module paths to include in an uploaded cloud
"lambda". Specifically, it will examine the package.json for the caller's
code and transitively walk its dependencies section to determine what
packages should be included.
During this walk, if a package is encountered that contains a "pulumi": { ... } section then the normal "dependencies": { ... } section of that
package will not be included. These are "pulumi" packages, and those
dependencies are only intended for use at deployment time. However, a
"pulumi" package can also specify package that should be available at
cloud-runtime. These packages are found in a "runtimeDependencies": { ... } section in the package.json file with the same format as the normal
dependencies section.
See CodePathOptions for information on ways to control and configure
the final set of paths included in the resultant asset/archive map.
Note: this functionality is specifically intended for use by downstream
library code that is determining what is needed for a cloud-lambda. i.e. the
aws.serverless.Function or azure.serverless.FunctionApp libraries. In
general, other clients should not need to use this helper.
Computes the local
node_modulepaths to include in an uploaded cloud "lambda". Specifically, it will examine thepackage.jsonfor the caller's code and transitively walk itsdependenciessection to determine what packages should be included.During this walk, if a package is encountered that contains a
"pulumi": { ... }section then the normal"dependencies": { ... }section of that package will not be included. These are "pulumi" packages, and those dependencies are only intended for use at deployment time. However, a "pulumi" package can also specify package that should be available at cloud-runtime. These packages are found in a"runtimeDependencies": { ... }section in thepackage.jsonfile with the same format as the normaldependenciessection.See CodePathOptions for information on ways to control and configure the final set of paths included in the resultant asset/archive map.
Note: this functionality is specifically intended for use by downstream library code that is determining what is needed for a cloud-lambda. i.e. the
aws.serverless.Functionorazure.serverless.FunctionApplibraries. In general, other clients should not need to use this helper.