Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
func Install(ctx context.Context, dir string, production bool, stdout, stderr io.Writer) (string, error)
Install runs `npm install` in the given directory, installing the dependencies for the Node.js app located there. If the `PULUMI_PREFER_YARN` environment variable is set, `yarn install` is used instead of `npm install`.
func Pack ¶
Pack runs `npm pack` in the given directory, packaging the Node.js app located there into a tarball and returning it as `[]byte`. `stdout` is ignored for the command, as it does not generate useful data. If the `PULUMI_PREFER_YARN` environment variable is set, `yarn pack` is run instead of `npm pack`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.