npm

package
v3.40.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 3

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

func Pack(ctx context.Context, dir string, stderr io.Writer) ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL