Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CLI releases for npm 10 #680

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cli/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ const main = async ({
const range = `>=${major}.0.0-a <${major + 1}.0.0` // include all prereleases
const version = semver.parse(semver.maxSatisfying(pack.versions, range))

return {
return version && {
...release,
version: version.toString(),
// the default release is always controlled by the latest dist-tag
default: semver.eq(version, pack.latest),
prerelease: version.prerelease.length > 0,
}
})
}).filter(Boolean)

const latestRelease = releaseVersions.find(r => r.default)

Expand Down
4 changes: 4 additions & 0 deletions cli/releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
},
{
"id": "v9",
"branch": "release/v9"
},
{
"id": "v10",
"branch": "latest"
}
]
2 changes: 1 addition & 1 deletion content/cli/v9/commands/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: CLI Commands
shortName: Commands
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/nav.yml
redirect_from:
- /cli-commands
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-access
section: 1
description: Set access level on published packages
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-access.md
redirect_from:
- /cli-commands/access
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-adduser.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-adduser
section: 1
description: Add a registry user account
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-adduser.md
redirect_from:
- /cli-commands/adduser
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-audit
section: 1
description: Run a security audit
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-audit.md
redirect_from:
- /cli-commands/audit
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-bugs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-bugs
section: 1
description: Report bugs for a package in a web browser
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-bugs.md
redirect_from:
- /cli-commands/bugs
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-cache
section: 1
description: Manipulates packages cache
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-cache.md
redirect_from:
- /cli-commands/cache
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-ci
section: 1
description: Clean install a project
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-ci.md
redirect_from:
- /cli-commands/ci
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-completion
section: 1
description: Tab Completion for npm
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-completion.md
redirect_from:
- /cli-commands/completion
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-config
section: 1
description: Manage the npm configuration files
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-config.md
redirect_from:
- /cli-commands/config
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-dedupe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-dedupe
section: 1
description: Reduce duplication in the package tree
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-dedupe.md
redirect_from:
- /cli-commands/dedupe
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-deprecate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-deprecate
section: 1
description: Deprecate a version of a package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-deprecate.md
redirect_from:
- /cli-commands/deprecate
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-diff
section: 1
description: The registry diff command
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-diff.md
redirect_from:
- /cli-commands/diff
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-dist-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-dist-tag
section: 1
description: Modify package distribution tags
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-dist-tag.md
redirect_from:
- /cli-commands/dist-tag
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-docs
section: 1
description: Open documentation for a package in a web browser
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-docs.md
redirect_from:
- /cli-commands/docs
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-doctor.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-doctor
section: 1
description: Check your npm environment
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-doctor.md
redirect_from:
- /cli-commands/doctor
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-edit.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-edit
section: 1
description: Edit an installed package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-edit.md
redirect_from:
- /cli-commands/edit
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-exec
section: 1
description: Run a command from a local or remote npm package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-exec.md
redirect_from:
- /cli-commands/exec
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-explain.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-explain
section: 1
description: Explain installed packages
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-explain.md
redirect_from:
- /cli-commands/explain
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-explore.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-explore
section: 1
description: Browse an installed package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-explore.md
redirect_from:
- /cli-commands/explore
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-find-dupes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-find-dupes
section: 1
description: Find duplication in the package tree
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-find-dupes.md
redirect_from:
- /cli-commands/find-dupes
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-fund.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-fund
section: 1
description: Retrieve funding information
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-fund.md
redirect_from:
- /cli-commands/fund
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-help-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-help-search
section: 1
description: Search npm help documentation
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-help-search.md
redirect_from:
- /cli-commands/help-search
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-help.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-help
section: 1
description: Get help on npm
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-help.md
redirect_from:
- /cli-commands/help
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-hook.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-hook
section: 1
description: Manage registry hooks
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-hook.md
redirect_from:
- /cli-commands/hook
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-init
section: 1
description: Create a package.json file
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-init.md
redirect_from:
- /cli-commands/init
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-install-ci-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-install-ci-test
section: 1
description: Install a project with a clean slate and run tests
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-install-ci-test.md
redirect_from:
- /cli-commands/install-ci-test
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-install-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-install-test
section: 1
description: Install package(s) and run tests
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-install-test.md
redirect_from:
- /cli-commands/install-test
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-install
section: 1
description: Install a package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-install.md
redirect_from:
- /cli-commands/install
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-link.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-link
section: 1
description: Symlink a package folder
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-link.md
redirect_from:
- /cli-commands/link
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-login
section: 1
description: Login to a registry user account
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-login.md
redirect_from:
- /cli-commands/login
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-logout
section: 1
description: Log out of the registry
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-logout.md
redirect_from:
- /cli-commands/logout
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-ls
section: 1
description: List installed packages
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-ls.md
redirect_from:
- /cli-commands/ls
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-org.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-org
section: 1
description: Manage orgs
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-org.md
redirect_from:
- /cli-commands/npm-org
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-outdated.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-outdated
section: 1
description: Check for outdated packages
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-outdated.md
redirect_from:
- /cli-commands/npm-outdated
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-owner.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-owner
section: 1
description: Manage package owners
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-owner.md
redirect_from:
- /cli-commands/npm-owner
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-pack
section: 1
description: Create a tarball from a package
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-pack.md
redirect_from:
- /cli-commands/npm-pack
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-ping
section: 1
description: Ping npm registry
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-ping.md
redirect_from:
- /cli-commands/npm-ping
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-pkg.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-pkg
section: 1
description: Manages your package.json
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-pkg.md
redirect_from:
- /cli-commands/npm-pkg
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-prefix
section: 1
description: Display prefix
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-prefix.md
redirect_from:
- /cli-commands/npm-prefix
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-profile
section: 1
description: Change settings on your registry profile
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-profile.md
redirect_from:
- /cli-commands/npm-profile
Expand Down
2 changes: 1 addition & 1 deletion content/cli/v9/commands/npm-prune.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: npm-prune
section: 1
description: Remove extraneous packages
github_repo: npm/cli
github_branch: latest
github_branch: release/v9
github_path: docs/lib/content/commands/npm-prune.md
redirect_from:
- /cli-commands/npm-prune
Expand Down
Loading
Loading