Prepare to rename the master branch to main.

This commit is contained in:
Ian Clanton-Thuon 2022-04-08 18:37:46 -07:00
Родитель c7aef037ee
Коммит e20f9a1fb4
59 изменённых файлов: 92 добавлений и 93 удалений

Просмотреть файл

@ -3,7 +3,7 @@
<p align="center"><a href="https://rushstack.io/">https://rushstack.io/</a></p>
</td></tr></table>
[![Zulip chat room](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://rushstack.zulipchat.com/) &nbsp; [![Build Status](https://dev.azure.com/RushStack/GitHubProjects/_apis/build/status/rushstack/rushstack%20CI%20Build?branchName=master)](https://dev.azure.com/RushStack/GitHubProjects/_build/latest?definitionId=3&branchName=master)
[![Zulip chat room](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://rushstack.zulipchat.com/) &nbsp; [![Build Status](https://dev.azure.com/RushStack/GitHubProjects/_apis/build/status/rushstack/rushstack%20CI%20Build?branchName=main)](https://dev.azure.com/RushStack/GitHubProjects/_build/latest?definitionId=3&branchName=main)
The home for various projects maintained by the Rush Stack community, whose mission is to develop reusable tooling
for large scale TypeScript monorepos.

Просмотреть файл

@ -12,7 +12,7 @@ documentation.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/api-documenter/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/api-documenter/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/api-documenter/)

Просмотреть файл

@ -1,7 +1,7 @@
# @microsoft/api-extractor
![API Extractor](https://github.com/microsoft/rushstack/raw/master/common/wiki-images/api-extractor-title.png?raw=true)
![API Extractor](https://github.com/microsoft/rushstack/raw/main/common/wiki-images/api-extractor-title.png?raw=true)
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; https://api-extractor.com/
@ -44,7 +44,7 @@ For more details and support resources, please visit: https://api-extractor.com/
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/api-extractor/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/api-extractor/)

Просмотреть файл

@ -79,10 +79,10 @@ the Rush Stack website.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/heft/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/heft/CHANGELOG.md) - Find
out what's new in the latest version
- [UPGRADING.md](
https://github.com/microsoft/rushstack/blob/master/apps/heft/UPGRADING.md) - Instructions
https://github.com/microsoft/rushstack/blob/main/apps/heft/UPGRADING.md) - Instructions
for migrating existing projects to use a newer version of Heft
- [API Reference](https://rushstack.io/pages/api/heft/)

Просмотреть файл

@ -36,7 +36,7 @@ export class FileError extends Error {
this.column = column;
// Manually set the prototype, as we can no longer extend built-in classes like Error, Array, Map, etc.
// https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
// https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
//
// Note: the prototype must also be set on any classes which extend this one
(this as any).__proto__ = FileError.prototype; // eslint-disable-line @typescript-eslint/no-explicit-any

Просмотреть файл

@ -224,7 +224,7 @@ Optional arguments:
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/rundown/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/rundown/CHANGELOG.md) - Find
out what's new in the latest version
Rundown is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -1,7 +1,7 @@
# @microsoft/rush
![rush](https://github.com/microsoft/rushstack/blob/master/common/wiki-images/rush-logo.png?raw=true)
![rush](https://github.com/microsoft/rushstack/blob/main/common/wiki-images/rush-logo.png?raw=true)
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; https://rushjs.io
@ -25,7 +25,7 @@
- **Bulk publishing:** When it's time to do a release, Rush can detect which packages have changes, automatically bump all the appropriate version numbers, and run `npm publish` in each folder. If you like, configure your server to automatically run `rush publish` every hour.
- **Changelog tracking:** Whenever a PR is created, you can require developers to provide a major/minor/patch log entry for the affected projects. During publishing, these changes will be automatically aggregated into a nicely formatted [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/master/libraries/node-core-library/CHANGELOG.md) file.
- **Changelog tracking:** Whenever a PR is created, you can require developers to provide a major/minor/patch log entry for the affected projects. During publishing, these changes will be automatically aggregated into a nicely formatted [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/main/libraries/node-core-library/CHANGELOG.md) file.
- **Enterprise policies:** Want to review new libraries before developers add them to package.json, but avoid hassling people about already approved cases? Want to enforce that all your projects depend on the same library version numbers? Are unprofessional personal e-mail addresses accidentally showing up in your company's Git history? Rush can help maintain a consistent ecosystem when you've got many developers and many projects in the mix.
@ -67,10 +67,10 @@ For more details and support resources, please visit: https://rushjs.io
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/rush/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/rush/CHANGELOG.md) - Find
out what's new in the latest version
- [UPGRADING.md](
https://github.com/microsoft/rushstack/blob/master/apps/rush/UPGRADING.md) - Instructions
https://github.com/microsoft/rushstack/blob/main/apps/rush/UPGRADING.md) - Instructions
for migrating existing projects to use a newer version of Rush
- [API Reference](https://api.rushstack.io/pages/rush-lib/)

Просмотреть файл

@ -116,7 +116,7 @@
// *
// * Thus, warnings do not interfere with local development, but they will cause a CI job to fail, because
// * the Rush process itself returns a nonzero exit code if there are any warnings or errors. This is by design.
// * In an active monorepo, we've found that if you allow any warnings in your master branch, it inadvertently
// * In an active monorepo, we've found that if you allow any warnings in your main branch, it inadvertently
// * teaches developers to ignore warnings, which quickly leads to a situation where so many "expected" warnings
// * have accumulated that warnings no longer serve any useful purpose.
// *

Просмотреть файл

@ -44,7 +44,7 @@ designed around the the requirements of large teams and projects.
- **Explicit:** The ruleset does not import any "recommended" templates from other ESLint packages. This avoids
worrying about precedence issues due to import order. It also eliminates confusion caused by files
overriding/undoing settings from another file. Each rule is configured once, in one
[easy-to-read file](https://github.com/microsoft/rushstack/blob/master/stack/eslint-config/profile/_common.js).
[easy-to-read file](https://github.com/microsoft/rushstack/blob/main/stack/eslint-config/profile/_common.js).
- **Minimal configuration:** To use this ruleset, your **.eslintrc.js** will need to choose one **"profile"**
and possibly one or two **"mixins"** that cover special cases. Beyond that, our goal is to reduce monorepo
@ -268,7 +268,7 @@ module.exports = {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/stack/eslint-config/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/stack/eslint-config/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/eslint-config` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -204,7 +204,7 @@ function buildRules(profile) {
// - @typescript-eslint/interface-name-prefix
// - @typescript-eslint/member-naming
//
// Docs: https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
// Docs: https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
'@typescript-eslint/naming-convention': [
'warn',
...macros.expandNamingConventionSelectors([

Просмотреть файл

@ -63,7 +63,7 @@ and recommended approach.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/stack/eslint-patch/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/stack/eslint-patch/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/eslint-patch` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -192,7 +192,7 @@ module.exports = {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/stack/eslint-plugin-packlets/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/stack/eslint-plugin-packlets/CHANGELOG.md) - Find
out what's new in the latest version
- [@rushstack/eslint-config](https://www.npmjs.com/package/@rushstack/eslint-config) documentation

Просмотреть файл

@ -66,7 +66,7 @@ function isInteger(s: string): boolean {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/stack/eslint-plugin-security/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/stack/eslint-plugin-security/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/eslint-plugin-security` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -229,7 +229,7 @@ let e: E._PrivateMember = E._PrivateMember; // okay, because _PrivateMember is d
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/stack/eslint-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/stack/eslint-plugin/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/eslint-plugin` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -6,7 +6,7 @@ Automatically configures webpack-dev-server to use https in serve mode.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-dev-cert-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-dev-cert-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -5,7 +5,7 @@ This is a Heft plugin for using Jest during the "test" stage.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-jest-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-jest-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -29,7 +29,7 @@ export interface IHeftJestReporterOptions {
* Jest behavior.
*
* For reference, Jest's default implementation is here:
* https://github.com/facebook/jest/blob/master/packages/jest-reporters/src/default_reporter.ts
* https://github.com/facebook/jest/blob/main/packages/jest-reporters/src/default_reporter.ts
*/
export default class HeftJestReporter implements Reporter {
private _terminal: ITerminal;

Просмотреть файл

@ -5,7 +5,7 @@ This is a Heft plugin for using node-sass during the "build" stage.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-sass-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-sass-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -6,7 +6,7 @@ UI components.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-storybook-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-storybook-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -5,7 +5,7 @@ This is a Heft plugin for using Webpack 4 during the "bundle" stage.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-webpack4-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-webpack4-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -5,7 +5,7 @@ This is a Heft plugin for using Webpack 5 during the "bundle" stage.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/heft-plugins/heft-webpack5-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/heft-plugins/heft-webpack5-plugin/CHANGELOG.md) - Find
out what's new in the latest version
Heft is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -61,7 +61,7 @@ a namespace containing static members of the class.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/api-extractor-model/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/api-extractor-model/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/api-extractor-model/)

Просмотреть файл

@ -9,7 +9,6 @@
This library contains utilities for managing debug certificates in a development server environment. It provides functions to generate, self-sign, trust, and untrust .pem certificates for both Windows and Mac OS. It will also generate self-signed certificates on other OS's, but the user must manually trust and untrust them.
[![npm version](https://badge.fury.io/js/%40rushstack%2Fdebug-certificate-manager.svg)](https://badge.fury.io/js/%40rushstack%2Fdebug-certificate-manager)
[![Build Status](https://travis-ci.org/Microsoft/debug-certificate-manager.svg?branch=master)](https://travis-ci.org/Microsoft/debug-certificate-manager) [![Dependencies](https://david-dm.org/Microsoft/debug-certificate-manager.svg)](https://david-dm.org/Microsoft/debug-certificate-manager)
## `CertificateStore`
@ -44,7 +43,7 @@ Attempts to locate a previously generated debug certificate and untrust it. Retu
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/debug-certificate-manager/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/debug-certificate-manager/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/debug-certificate-manager/)

Просмотреть файл

@ -5,7 +5,7 @@ A library for loading config files for use with the [Heft](https://rushstack.io/
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/heft-config-file/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/heft-config-file/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/heft-config-file/)

Просмотреть файл

@ -1,8 +1,6 @@
# @microsoft/load-themed-styles
[![npm version](https://badge.fury.io/js/%40microsoft%2Fload-themed-styles.svg)](https://badge.fury.io/js/%40microsoft%2Fload-themed-styles)
[![Build Status](https://travis-ci.org/Microsoft/load-themed-styles.svg?branch=master)](https://travis-ci.org/Microsoft/load-themed-styles) [![Dependencies](https://david-dm.org/Microsoft/load-themed-styles.svg)](https://david-dm.org/Microsoft/load-themed-styles)
> Loads a string of style rules, but supports detokenizing theme constants built within it.
## Install
@ -62,7 +60,7 @@ window.CSPSettings = {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/load-themed-styles/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/load-themed-styles/CHANGELOG.md) - Find
out what's new in the latest version
`@microsoft/load-themed-styles` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -31,7 +31,7 @@ demonstrated. If in doubt, create your own NPM package.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/node-core-library/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/node-core-library/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/node-core-library/)

Просмотреть файл

@ -41,7 +41,7 @@ export class AlreadyReportedError extends Error {
super('An error occurred.');
// Manually set the prototype, as we can no longer extend built-in classes like Error, Array, Map, etc
// [https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work](https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work)
// [https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work](https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work)
//
// Note: the prototype must also be set on any classes which extend this one
(this as any).__proto__ = AlreadyReportedError.prototype; // eslint-disable-line @typescript-eslint/no-explicit-any

Просмотреть файл

@ -37,7 +37,7 @@ export class InternalError extends Error {
super(InternalError._formatMessage(message));
// Manually set the prototype, as we can no longer extend built-in classes like Error, Array, Map, etc.
// https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
// https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
//
// Note: the prototype must also be set on any classes which extend this one
(this as any).__proto__ = InternalError.prototype; // eslint-disable-line @typescript-eslint/no-explicit-any

Просмотреть файл

@ -32,7 +32,7 @@ if (_.isEqual(deps, existingDeps)) {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/package-deps-hash/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/package-deps-hash/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/package-deps-hash/)

Просмотреть файл

@ -222,7 +222,7 @@ Note that there are also async variants of the functions that access the filesys
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/rig-package/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/rig-package/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/rig-package/)

Просмотреть файл

@ -18,7 +18,7 @@ API documentation for this package: https://rushjs.io/pages/advanced/api/
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/rush/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/rush/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://api.rushstack.io/pages/rush-lib/)

Просмотреть файл

@ -5,7 +5,7 @@ script:
- set -e
- echo 'Checking for missing change logs...' && echo -en 'travis_fold:start:change\\r'
- git fetch origin master:refs/remotes/origin/master -a
- git fetch origin main:refs/remotes/origin/main -a
- node common/scripts/install-run-rush.js change -v
- echo -en 'travis_fold:end:change\\r'

Просмотреть файл

@ -93,7 +93,7 @@
*
* Thus, warnings do not interfere with local development, but they will cause a CI job to fail, because
* the Rush process itself returns a nonzero exit code if there are any warnings or errors. This is by design.
* In an active monorepo, we've found that if you allow any warnings in your master branch, it inadvertently
* In an active monorepo, we've found that if you allow any warnings in your main branch, it inadvertently
* teaches developers to ignore warnings, which quickly leads to a situation where so many "expected" warnings
* have accumulated that warnings no longer serve any useful purpose.
*

Просмотреть файл

@ -283,24 +283,24 @@
* The URL of this Git repository, used by "rush change" to determine the base branch for your PR.
*
* The "rush change" command needs to determine which files are affected by your PR diff.
* If you merged or cherry-picked commits from the master branch into your PR branch, those commits
* If you merged or cherry-picked commits from the main branch into your PR branch, those commits
* should be excluded from this diff (since they belong to some other PR). In order to do that,
* Rush needs to know where to find the base branch for your PR. This information cannot be
* determined from Git alone, since the "pull request" feature is not a Git concept. Ideally
* Rush would use a vendor-specific protocol to query the information from GitHub, Azure DevOps, etc.
* But to keep things simple, "rush change" simply assumes that your PR is against the "master" branch
* But to keep things simple, "rush change" simply assumes that your PR is against the "main" branch
* of the Git remote indicated by the repository.url setting in rush.json. If you are working in
* a GitHub "fork" of the real repo, this setting will be different from the repository URL of your
* your PR branch, and in this situation "rush change" will also automatically invoke "git fetch"
* to retrieve the latest activity for the remote master branch.
* to retrieve the latest activity for the remote main branch.
*/
/*[LINE "HYPOTHETICAL"]*/ "url": "https://github.com/microsoft/rush-example",
/**
* The default branch name. This tells "rush change" which remote branch to compare against.
* The default value is "master"
* The default value is "main"
*/
/*[LINE "HYPOTHETICAL"]*/ "defaultBranch": "master",
/*[LINE "HYPOTHETICAL"]*/ "defaultBranch": "main",
/**
* The default remote. This tells "rush change" which remote to compare against if the remote URL is

Просмотреть файл

@ -43,7 +43,7 @@ const DependencyAnalyzerModule: typeof DependencyAnalyzerModuleType = Import.laz
);
const MINIMUM_SUPPORTED_RUSH_JSON_VERSION: string = '0.0.0';
const DEFAULT_BRANCH: string = 'master';
const DEFAULT_BRANCH: string = 'main';
const DEFAULT_REMOTE: string = 'origin';
/**

Просмотреть файл

@ -120,7 +120,7 @@ export class ChangeAction extends BaseRushAction {
description:
'If this parameter is specified, compare the checked out branch with the specified branch to ' +
'determine which projects were changed. If this parameter is not specified, the checked out branch ' +
'is compared against the "master" branch.'
'is compared against the "main" branch.'
});
this._overwriteFlagParameter = this.defineFlagParameter({

Просмотреть файл

@ -285,7 +285,7 @@ Optional arguments:
out branch with the specified branch to determine
which projects were changed. If this parameter is not
specified, the checked out branch is compared against
the \\"master\\" branch.
the \\"main\\" branch.
--overwrite If a changefile already exists, overwrite without
prompting (or erroring in --bulk mode).
--email EMAIL The email address to use in changefiles. If this

Просмотреть файл

@ -298,7 +298,7 @@ export class Git {
* Gets the remote default branch that maps to the provided repository url.
* This method is used by 'Rush change' to find the default remote branch to compare against.
* If repository url is not provided or if there is no match, returns the default remote's
* default branch 'origin/master'.
* default branch 'origin/main'.
* If there are more than one matches, returns the first remote's default branch.
*
* @param rushConfiguration - rush configuration

Просмотреть файл

@ -9,7 +9,7 @@ export interface IYamlDumpOptions {
}
// This is based on PNPM's own configuration:
// https://github.com/pnpm/pnpm-shrinkwrap/blob/master/src/write.ts
// https://github.com/pnpm/pnpm-shrinkwrap/blob/main/src/write.ts
export const PNPM_SHRINKWRAP_YAML_FORMAT: IYamlDumpOptions = {
lineWidth: 1000,
noCompatMode: true,

Просмотреть файл

@ -222,7 +222,7 @@
}
},
"defaultBranch": {
"description": "The default branch name. This tells \"rush change\" which remote branch to compare against. The default value is \"master\"",
"description": "The default branch name. This tells \"rush change\" which remote branch to compare against. The default value is \"main\"",
"type": "string"
},
"defaultRemote": {

Просмотреть файл

@ -23,7 +23,7 @@ Verbose logging can be turn on by set environment variable `RUSH_SDK_DEBUG` to `
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/apps/rush/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/apps/rush/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://api.rushstack.io/pages/rush-lib/)

Просмотреть файл

@ -28,7 +28,7 @@ export class ParseError extends Error {
// Boilerplate for extending a system class
//
// https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
// https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
//
// IMPORTANT: The prototype must also be set on any classes which extend this one
(this as any).__proto__ = ParseError.prototype; // eslint-disable-line @typescript-eslint/no-explicit-any

Просмотреть файл

@ -50,7 +50,7 @@ all background streams which have been completed will be emitted.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/stream-collator/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/stream-collator/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/stream-collator/)

Просмотреть файл

@ -46,7 +46,7 @@ capable of matching substrings that span multiple chunks.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/terminal/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/terminal/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/terminal/)

Просмотреть файл

@ -141,7 +141,7 @@ separate patterns.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/tree-pattern/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/tree-pattern/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/tree-pattern/)

Просмотреть файл

@ -139,7 +139,7 @@ When we run `widget --verbose push --force`, the `PushAction.onExecute()` method
---
**For a more complete example, take a look at the [ts-command-line-test](https://github.com/microsoft/rushstack/tree/master/build-tests/ts-command-line-test) sample project.**
**For a more complete example, take a look at the [ts-command-line-test](https://github.com/microsoft/rushstack/tree/main/build-tests/ts-command-line-test) sample project.**
---
@ -238,7 +238,7 @@ You can also mix the two models. For example, we could augment the `WidgetComma
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/libraries/ts-command-line/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/libraries/ts-command-line/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/ts-command-line/)

Просмотреть файл

@ -10,7 +10,7 @@ export class CommandLineParserExitError extends Error {
super(message);
// Manually set the prototype, as we can no longer extend built-in classes like Error, Array, Map, etc
// https://github.com/microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
// https://github.com/microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
//
// Note: the prototype must also be set on any classes which extend this one
(this as any).__proto__ = CommandLineParserExitError.prototype; // eslint-disable-line @typescript-eslint/no-explicit-any

Просмотреть файл

@ -58,7 +58,7 @@ return TypeScript declarations for the file it is called with.
### `terminal`
Optionally provide a [Terminal](https://github.com/microsoft/rushstack/blob/master/libraries/node-core-library/src/Terminal/Terminal.ts)
Optionally provide a [Terminal](https://github.com/microsoft/rushstack/blob/main/libraries/node-core-library/src/Terminal/Terminal.ts)
object for logging. If one isn't provided, logs will go to the console.
### `globsToIgnore`
@ -125,7 +125,7 @@ is set to `IExportStyles`. If not specified, the interface name will be `IExport
## Links
- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/master/libraries/typings-generator/CHANGELOG.md) - Find
- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/main/libraries/typings-generator/CHANGELOG.md) - Find
out what's new in the latest version
- [API Reference](https://rushstack.io/pages/api/typings-generator/)

Просмотреть файл

@ -18,13 +18,13 @@ To enable it, add a **rig.json** file to your project, as shown below:
```
The config files provided by this rig profile can be found in the [heft-node-rig/profiles/default](
https://github.com/microsoft/rushstack/tree/master/rigs/heft-node-rig/profiles/default) source folder.
https://github.com/microsoft/rushstack/tree/main/rigs/heft-node-rig/profiles/default) source folder.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/rigs/heft-node-rig/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/rigs/heft-node-rig/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/heft-node-rig` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -23,13 +23,13 @@ To enable it, add a **rig.json** file to your project, as shown below:
```
The config files provided by this rig profile can be found in the [heft-web-rig/profiles/library](
https://github.com/microsoft/rushstack/tree/master/rigs/heft-web-rig/profiles/library) source folder.
https://github.com/microsoft/rushstack/tree/main/rigs/heft-web-rig/profiles/library) source folder.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/rigs/heft-web-rig/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/rigs/heft-web-rig/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/heft-web-rig` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -5,5 +5,5 @@ This is a Rush plugin for using Amazon S3 as cloud build cache provider during t
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/rush-plugins/rush-amazon-s3-build-cache-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/rush-plugins/rush-amazon-s3-build-cache-plugin/CHANGELOG.md) - Find
out what's new in the latest version

Просмотреть файл

@ -4,7 +4,8 @@
"description": "Rush plugin for Amazon S3 cloud build cache",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/rushstack/tree/master/heft-plugins/heft-webpack5-plugin"
"url": "https://github.com/microsoft/rushstack",
"directory": "rush-plugins/rush-amazon-s3-build-cache-plugin"
},
"homepage": "https://rushjs.io",
"main": "lib/index.js",

Просмотреть файл

@ -4,7 +4,8 @@
"description": "Rush plugin for Azure storage cloud build cache",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/rushstack/tree/master/heft-plugins/heft-webpack5-plugin"
"url": "https://github.com/microsoft/rushstack",
"directory": "heft-plugins/heft-webpack5-plugin"
},
"homepage": "https://rushjs.io",
"main": "lib/index.js",

Просмотреть файл

@ -274,24 +274,24 @@
* The URL of this Git repository, used by "rush change" to determine the base branch for your PR.
*
* The "rush change" command needs to determine which files are affected by your PR diff.
* If you merged or cherry-picked commits from the master branch into your PR branch, those commits
* If you merged or cherry-picked commits from the main branch into your PR branch, those commits
* should be excluded from this diff (since they belong to some other PR). In order to do that,
* Rush needs to know where to find the base branch for your PR. This information cannot be
* determined from Git alone, since the "pull request" feature is not a Git concept. Ideally
* Rush would use a vendor-specific protocol to query the information from GitHub, Azure DevOps, etc.
* But to keep things simple, "rush change" simply assumes that your PR is against the "master" branch
* But to keep things simple, "rush change" simply assumes that your PR is against the "main" branch
* of the Git remote indicated by the repository.url setting in rush.json. If you are working in
* a GitHub "fork" of the real repo, this setting will be different from the repository URL of your
* your PR branch, and in this situation "rush change" will also automatically invoke "git fetch"
* to retrieve the latest activity for the remote master branch.
* to retrieve the latest activity for the remote main branch.
*/
"urls": ["https://github.com/microsoft/rushstack.git"]
"urls": ["https://github.com/microsoft/rushstack.git"],
/**
* The default branch name. This tells "rush change" which remote branch to compare against.
* The default value is "master"
* The default value is "main"
*/
// "defaultBranch": "master",
"defaultBranch": "main"
/**
* The default remote. This tells "rush change" which remote to compare against if the remote URL is

Просмотреть файл

@ -87,7 +87,7 @@ changes to the DOM.
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/webpack/loader-load-themed-styles/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/webpack/loader-load-themed-styles/CHANGELOG.md) - Find
out what's new in the latest version
`@microsoft/loader-load-themed-styles` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -19,7 +19,7 @@ require("@rushstack/loader-raw-script!path/to/script.js");
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/webpack/loader-raw-script/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/webpack/loader-raw-script/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/loader-raw-script` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -14,32 +14,32 @@ support for generating typings.
There are three example projects in this repository that make use of this plugin:
- [Project 1](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-01)
- [Project 1](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-01)
- This project contains two webpack entrypoints (one with an async chunk, one without), without any localized
resources
- The output is a single, non-localized variant
- [Project 2](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02)
- [Project 2](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02)
- This project contains three webpack entrypoints:
- [`indexA.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02/src/indexA.ts)
- [`indexA.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02/src/indexA.ts)
directly references two `.loc.json` files and one `.resx` file, and dynamically imports an async chunk with
localized data, and an async chunk without localized data
- [`indexB.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02/src/indexB.ts)
- [`indexB.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02/src/indexB.ts)
directly references two `.loc.json` files
- [`indexC.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02/src/indexC.ts)
- [`indexC.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02/src/indexC.ts)
directly references no localized resources, and dynamically imports an async chunk without localized data
- The webpack config contains and references Spanish translations for most of the English strings in the resource files
- The output contains English, Spanish, and "passthrough" localized variants of files that contain
localized data, and a non-localized variant of the files that do not contain localized data
- [Project 3](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-03)
- [Project 3](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-03)
- This project contains four webpack entrypoints:
- [`indexA.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-03/src/indexA.ts)
- [`indexA.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-03/src/indexA.ts)
directly references one `.loc.json` file, one `.resx.json` file, and one `.resx` file, and dynamically imports an async chunk with
localized data, and an async chunk without localized data
- [`indexB.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-03/src/indexB.ts)
- [`indexB.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-03/src/indexB.ts)
directly references one `.loc.json` file and one `.resx.json` file
- [`indexC.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-03/src/indexC.ts)
- [`indexC.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-03/src/indexC.ts)
directly references no localized resources, and dynamically imports an async chunk with localized data
- [`indexD.ts`](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-03/src/indexD.ts)
- [`indexD.ts`](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-03/src/indexD.ts)
directly references no localized resources, and dynamically imports an async chunk without localized data
- The webpack config contains or references Spanish translations for some of the English strings in the resource files
- The output contains English, Spanish, "passthrough," and two pseudo-localized variants of files that contain
@ -50,14 +50,14 @@ There are three example projects in this repository that make use of this plugin
[`.resx`](https://docs.microsoft.com/en-us/dotnet/framework/resources/creating-resource-files-for-desktop-apps#resources-in-resx-files)
is an XML format for resource data. It is primarily used in .NET development, and it is supported by
some translation services. See an example of a `.resx` file
[here](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02/src/strings5.resx).
[here](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02/src/strings5.resx).
Note that the `<xsd:schema>` and `<resheader>` elements are not required. Also note that although the
`.resx` supports many different types of localized data including strings and binary data, **only strings**
are supported by this plugin.
`.loc.json` is a very simple `JSON` schema for specifying localized string and translator comments.
See an example of a `.loc.json` file
[here](https://github.com/microsoft/rushstack/tree/master/build-tests/localization-plugin-test-02/src/strings3.loc.json).
[here](https://github.com/microsoft/rushstack/tree/main/build-tests/localization-plugin-test-02/src/strings3.loc.json).
For most projects, `.loc.json` is a simpler format to use. However for large projects, projects that already use
translation services that support `.resx`, or engineers who are already experienced .NET developers, `.resx`
@ -282,7 +282,7 @@ syntax. This option is not recommended.
## Links
- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/master/webpack/localization-plugin/CHANGELOG.md) - Find
- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/main/webpack/localization-plugin/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/localization-plugin` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -55,7 +55,7 @@ optimization: {
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/webpack/module-minifier-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/webpack/module-minifier-plugin/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/module-minifier-plugin` is part of the [Rush Stack](https://rushstack.io/) family of projects.

Просмотреть файл

@ -181,7 +181,7 @@ gulp.src('finizlied/webpack/bundle/path')
## Links
- [CHANGELOG.md](
https://github.com/microsoft/rushstack/blob/master/webpack/set-webpack-public-path-plugin/CHANGELOG.md) - Find
https://github.com/microsoft/rushstack/blob/main/webpack/set-webpack-public-path-plugin/CHANGELOG.md) - Find
out what's new in the latest version
`@rushstack/set-webpack-public-path-plugin` is part of the [Rush Stack](https://rushstack.io/) family of projects.