diff options
author | JC (Jonathan Chen) <jc@dijonkitchen.org> | 2022-07-21 19:41:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 19:41:40 +0300 |
commit | f9abee79abe541226a249f50bdeec41317dd5712 (patch) | |
tree | 2cdeee1aaa2fb5481912dfd960afb04fbd8bcd66 | |
parent | 9905d0e24c162c3f6cc006fa86b4c9d0205a4c6f (diff) |
docs: update commit-ish default branch (#5205)
* 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
-rw-r--r-- | docs/content/commands/npm-install.md | 2 | ||||
-rw-r--r-- | docs/content/configuring-npm/package-json.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/commands/npm-install.md b/docs/content/commands/npm-install.md index f05e53266..d6ae4324e 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 `#<commit-ish>` or - `#semver:<semver>` is specified, then `master` is used. + `#semver:<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 diff --git a/docs/content/configuring-npm/package-json.md b/docs/content/configuring-npm/package-json.md index f0315d60e..b0231662f 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:<semver>`, `<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 `#<commit-ish>` or `#semver:<semver>` is -specified, then `master` is used. +specified, then the default branch is used. Examples: |