From 6b1391a123b9d542df2f75f9db04f47739a060cd Mon Sep 17 00:00:00 2001 From: "JC (Jonathan Chen)" Date: Thu, 21 Jul 2022 10:28:16 -0400 Subject: [PATCH 1/2] docs: update commit-ish default branch To match with https://github.com/npm/cli/blob/latest/docs/content/using-npm/developers.md#what-is-a-package --- docs/content/commands/npm-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/commands/npm-install.md b/docs/content/commands/npm-install.md index f05e532668fe2..d6ae4324ecefc 100644 --- a/docs/content/commands/npm-install.md +++ b/docs/content/commands/npm-install.md @@ -311,7 +311,7 @@ into a tarball (b). can be any valid semver range or exact version, and npm will look for any tags or refs matching that range in the remote repository, much as it would for a registry dependency. If neither `#` or - `#semver:` is specified, then `master` is used. + `#semver:` is specified, then the default branch is used. As with regular git dependencies, `dependencies` and `devDependencies` will be installed if the package has a `prepare` script before the From bf48ed1f26dead2cedce3cde3cf243e5bf8d8c51 Mon Sep 17 00:00:00 2001 From: "JC (Jonathan Chen)" Date: Thu, 21 Jul 2022 10:31:25 -0400 Subject: [PATCH 2/2] docs: update to reference default branch --- docs/content/configuring-npm/package-json.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/configuring-npm/package-json.md b/docs/content/configuring-npm/package-json.md index f0315d60efef4..b0231662f6930 100644 --- a/docs/content/configuring-npm/package-json.md +++ b/docs/content/configuring-npm/package-json.md @@ -632,7 +632,7 @@ commit. If the commit-ish has the format `#semver:`, `` can be any valid semver range or exact version, and npm will look for any tags or refs matching that range in the remote repository, much as it would for a registry dependency. If neither `#` or `#semver:` is -specified, then `master` is used. +specified, then the default branch is used. Examples: