rush-lib package
A library for writing scripts that interact with the Rush tool.
Classes
Class | Description |
|---|---|
This represents the JSON file specified via the "approvedPackagesFile" option in rush.json. | |
An item returned by ApprovedPackagesConfiguration | |
This is a helper object for RushConfiguration. It exposes the "approvedPackagesPolicy" feature from rush.json. | |
(BETA) Use this class to load and save the "common/config/rush/build-cache.json" config file. This file provides configuration options for cached project build output. | |
A class that helps with programmatically interacting with Rush's change files. | |
(BETA) Use this class to load and save the "common/config/rush/cobuild.json" config file. This file provides configuration options for the Rush Cobuild feature. | |
Use this class to load and save the "common/config/rush/common-versions.json" config file. This config file stores dependency version information that affects all projects in the repo. | |
(BETA) Used to access the | |
(BETA) Provides Rush-specific environment variable data. All Rush environment variables must start with "RUSH_". This class is designed to be used by RushConfiguration. | |
(BETA) This class represents Rush event hooks configured for this repo. Hooks are customized script actions that Rush executes when specific events occur. The actions are expressed as a command-line that is executed using the operating system shell. | |
Use this class to load the "common/config/rush/experiments.json" config file. This file allows repo maintainers to enable and disable experimental Rush features. | |
(BETA) A build cache provider using the local file system. Required by all cloud cache providers. | |
This policy indicates all related projects get version bump driven by their own changes. | |
This policy indicates all related projects should use the same version. | |
Options that are only used when the NPM package manager is selected. | |
(ALPHA) The The graph of | |
(ALPHA) Hooks into the execution process for phased commands | |
Options that are only used when the PNPM package manager is selected. Use this class to load "common/config/rush/pnpm-config.json" file, or, load json from "pnpmOptions" field in "rush.json" for legacy support. | |
(BETA) | |
This file is used to track the state of various Rush-related features. It is generated and updated by Rush. | |
General operations for the Rush engine. | |
(BETA) Information about the available CLI commands | |
This represents the Rush configuration for a repository, based on the "rush.json" configuration file. | |
This represents the configuration of a project that is built by Rush, based on the Rush.json configuration file. | |
(BETA) Constants used by the Rush tool. | |
(BETA) Hooks into the lifecycle of the Rush process invocation that plugins may tap into. | |
(ALPHA) Use this class to load the "config/rush-project.json" config file. This file provides project-specific configuration options. | |
(BETA) | |
(BETA) Rush per-user configuration data. | |
This represents the subspace configurations for a repository, based on the "subspaces.json" configuration file. | |
(BETA) This represents the subspace configurations for a repository, based on the "subspaces.json" configuration file. | |
Use this class to load and save the "common/config/rush/version-policies.json" config file. This config file configures how different groups of projects will be published by Rush, and how their version numbers will be determined. | |
Options that are only used when the yarn package manager is selected. |
Abstract Classes
Abstract Class | Description |
|---|---|
An abstraction for controlling the supported package managers: PNPM, NPM, and Yarn. | |
Options that all package managers share. | |
This is the base class for version policy which controls how versions get bumped. |
Enumerations
Enumeration | Description |
|---|---|
Type of version bumps | |
(BETA) An identifier representing a Rush message that can be customized by defining a custom tip in | |
(BETA) The severity of a custom tip. It determines the printing severity ("Error" = red, "Warning" = yellow, "Info" = normal). | |
(BETA) The type of the custom tip. | |
(BETA) Events happen during Rush runs. | |
(BETA) Enumeration defining potential states of an operation | |
Version policy base type names |
Interfaces
Interface | Description |
|---|---|
(BETA) | |
(BETA) | |
(BETA) | |
(BETA) | |
(BETA) | |
A collection of environment variables | |
Represents the value of an environment variable, and if the value should be overridden if the variable is set in the parent environment. | |
(ALPHA) Context used for creating operations to be executed. | |
(BETA) Metadata for a custom tip. | |
(BETA) An item from the ICustomTipsJson.customTips list. | |
(BETA) This interface represents the raw custom-tips.json file which allows repo maintainers to configure extra details to be printed alongside certain Rush messages. | |
(BETA) | |
(ALPHA) Context used for executing operations. | |
(ALPHA) The | |
(BETA) This interface represents the raw experiments.json file which allows repo maintainers to enable and disable experimental Rush features. | |
(BETA) Options for creating a file system build cache provider. | |
(BETA) Options for generating the cache id for an operation. | |
(BETA) | |
(BETA) Information about the currently executing global script command (as defined in command-line.json) provided to plugins. | |
This interface represents the raw individual version policy JSON object which extends the base version policy with additional fields specific to individual versioning. | |
(BETA) Represents a synchronously-queryable in-memory snapshot of the state of the inputs to a Rush repository. The methods on this interface are idempotent and will return the same result regardless of when they are executed. | |
Options to pass to the rush "launch" functions. | |
This interface represents the raw lock-step version policy JSON object which extends the base version policy with additional fields specific to lock-step versioning. | |
(ALPHA) Information about the log files for an operation. | |
(BETA) | |
(ALPHA) The | |
(ALPHA) Options for constructing a new Operation. | |
(BETA) The | |
(BETA) Information passed to the executing | |
(ALPHA) | |
Options for the package manager. | |
(ALPHA) Metadata about a phase. | |
(BETA) Information about the currently executing phased script command (as defined in command-line.json, or default "build" or "rebuild") provided to plugins. | |
Possible values for the | |
(BETA) Information about the currently executing command provided to plugins. | |
(BETA) The full spec of an available Rush command line action | |
(BETA) Information about the available parameters associated with a Rush action | |
(BETA) The full spec of a Rush CLI | |
(ALPHA) | |
(BETA) | |
(BETA) | |
(BETA) Represents a readonly view of a | |
(BETA) | |
(BETA) | |
(BETA) | |
Options for | |
This interface represents the raw version policy JSON object which allows repo maintainers to define how different groups of projects will be published by Rush, and how their version numbers will be determined. |
Variables
Variable | Description |
|---|---|
(BETA) Names of environment variables used by Rush. |
Type Aliases
Type Alias | Description |
|---|---|
(BETA) | |
(BETA) | |
(BETA) Calculates the cache entry id string for an operation. | |
(BETA) Function that computes a new snapshot of the current state of the repository as of the current moment. Rush-level configuration state will have been bound during creation of the function. Captures the state of the environment, tracked files, and additional files. | |
(ALPHA) The set of valid behaviors for a missing script in a project's package.json scripts for a given phase. | |
(BETA) | |
(ALPHA) The granularity at which the Node.js version is included in the build cache hash.
| |
This represents the available Package Manager tools as a string | |
Possible values for the | |
This represents the available PNPM store options | |