Skip to content

Commit db37a94

Browse files
authored
Update CLI releases for npm 10 (npm#680)
1 parent 2442e3c commit db37a94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+93
-89
lines changed

cli/lib/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ const main = async ({
8282
const range = `>=${major}.0.0-a <${major + 1}.0.0` // include all prereleases
8383
const version = semver.parse(semver.maxSatisfying(pack.versions, range))
8484

85-
return {
85+
return version && {
8686
...release,
8787
version: version.toString(),
8888
// the default release is always controlled by the latest dist-tag
8989
default: semver.eq(version, pack.latest),
9090
prerelease: version.prerelease.length > 0,
9191
}
92-
})
92+
}).filter(Boolean)
9393

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

cli/releases.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
},
1414
{
1515
"id": "v9",
16+
"branch": "release/v9"
17+
},
18+
{
19+
"id": "v10",
1620
"branch": "latest"
1721
}
1822
]

content/cli/v9/commands/index.mdx

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-access.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-adduser.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-audit.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-bugs.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-cache.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-ci.md

Lines changed: 1 addition & 1 deletion

content/cli/v9/commands/npm-completion.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)