Skip to content

Commit dfcc4b3

Browse files
authored
fix: v10 docs (#1418)
Closes: #1416
1 parent 4ec103a commit dfcc4b3

Some content is hidden

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

91 files changed

+15
-1302
lines changed

cli-cache.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"v11": "f7da341322c2f860156e8144b208583596504479",
2+
"v8": "aa8fff11cdab94fff1a2160ee5241f5f4632e96b",
33
"v9": "64763a341e7aa5b456e696f956759bf9b3440dc1",
44
"v10": "a3041941586b6fb8ed7403fe3c24d81138a96005",
5-
"v8": "aa8fff11cdab94fff1a2160ee5241f5f4632e96b"
5+
"v11": "f7da341322c2f860156e8144b208583596504479"
66
}

cli/lib/cache.js

+11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ class CacheVersionSha {
1212
}
1313

1414
async save() {
15+
const sortedCache = {}
16+
Object.keys(this.cache)
17+
.sort((a, b) => {
18+
const numA = parseInt(a.replace('v', ''), 10)
19+
const numB = parseInt(b.replace('v', ''), 10)
20+
return numA - numB
21+
})
22+
.forEach(key => {
23+
sortedCache[key] = this.cache[key]
24+
})
25+
this.cache = sortedCache
1526
await fs.writeFile(this.path, JSON.stringify(this.cache, null, 2))
1627
return this
1728
}

content/cli/v10/commands/index.mdx

-13
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,13 @@ github_repo: npm/cli
55
github_branch: release/v10
66
github_path: docs/lib/content/nav.yml
77
redirect_from:
8-
- /cli-commands
9-
- /cli-commands/index
10-
- /cli-documentation/cli
11-
- /cli-documentation/cli-commands
12-
- /cli-documentation/cli-commands/index
13-
- /cli-documentation/commands
14-
- /cli-documentation/commands/index
158
- /cli-documentation/v10/cli-commands
169
- /cli-documentation/v10/cli-commands/index
1710
- /cli-documentation/v10/commands
1811
- /cli-documentation/v10/commands/index
19-
- /cli/cli-commands
20-
- /cli/cli-commands/index
21-
- /cli/commands
22-
- /cli/commands/index
2312
- /cli/v10/cli-commands
2413
- /cli/v10/cli-commands/index
2514
- /cli/v10/commands/index
26-
- /commands
27-
- /commands/index
2815
---
2916

3017
<Index depth="1" />

content/cli/v10/commands/npm-access.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-access.md
88
redirect_from:
9-
- /cli-commands/access
10-
- /cli-commands/npm-access
11-
- /cli-documentation/access
12-
- /cli-documentation/cli-commands/access
13-
- /cli-documentation/cli-commands/npm-access
14-
- /cli-documentation/commands/access
15-
- /cli-documentation/commands/npm-access
16-
- /cli-documentation/npm-access
179
- /cli-documentation/v10/access
1810
- /cli-documentation/v10/cli-commands/access
1911
- /cli-documentation/v10/cli-commands/npm-access
2012
- /cli-documentation/v10/commands/access
2113
- /cli-documentation/v10/commands/npm-access
2214
- /cli-documentation/v10/npm-access
23-
- /cli/access
24-
- /cli/cli-commands/access
25-
- /cli/cli-commands/npm-access
26-
- /cli/commands/access
27-
- /cli/commands/npm-access
28-
- /cli/npm-access
2915
- /cli/v10/access
3016
- /cli/v10/cli-commands/access
3117
- /cli/v10/cli-commands/npm-access
3218
- /cli/v10/commands/access
3319
- /cli/v10/npm-access
34-
- /commands/access
35-
- /commands/npm-access
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-adduser.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-adduser.md
88
redirect_from:
9-
- /cli-commands/adduser
10-
- /cli-commands/npm-adduser
11-
- /cli-documentation/adduser
12-
- /cli-documentation/cli-commands/adduser
13-
- /cli-documentation/cli-commands/npm-adduser
14-
- /cli-documentation/commands/adduser
15-
- /cli-documentation/commands/npm-adduser
16-
- /cli-documentation/npm-adduser
179
- /cli-documentation/v10/adduser
1810
- /cli-documentation/v10/cli-commands/adduser
1911
- /cli-documentation/v10/cli-commands/npm-adduser
2012
- /cli-documentation/v10/commands/adduser
2113
- /cli-documentation/v10/commands/npm-adduser
2214
- /cli-documentation/v10/npm-adduser
23-
- /cli/adduser
24-
- /cli/cli-commands/adduser
25-
- /cli/cli-commands/npm-adduser
26-
- /cli/commands/adduser
27-
- /cli/commands/npm-adduser
28-
- /cli/npm-adduser
2915
- /cli/v10/adduser
3016
- /cli/v10/cli-commands/adduser
3117
- /cli/v10/cli-commands/npm-adduser
3218
- /cli/v10/commands/adduser
3319
- /cli/v10/npm-adduser
34-
- /commands/adduser
35-
- /commands/npm-adduser
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-audit.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-audit.md
88
redirect_from:
9-
- /cli-commands/audit
10-
- /cli-commands/npm-audit
11-
- /cli-documentation/audit
12-
- /cli-documentation/cli-commands/audit
13-
- /cli-documentation/cli-commands/npm-audit
14-
- /cli-documentation/commands/audit
15-
- /cli-documentation/commands/npm-audit
16-
- /cli-documentation/npm-audit
179
- /cli-documentation/v10/audit
1810
- /cli-documentation/v10/cli-commands/audit
1911
- /cli-documentation/v10/cli-commands/npm-audit
2012
- /cli-documentation/v10/commands/audit
2113
- /cli-documentation/v10/commands/npm-audit
2214
- /cli-documentation/v10/npm-audit
23-
- /cli/audit
24-
- /cli/cli-commands/audit
25-
- /cli/cli-commands/npm-audit
26-
- /cli/commands/audit
27-
- /cli/commands/npm-audit
28-
- /cli/npm-audit
2915
- /cli/v10/audit
3016
- /cli/v10/cli-commands/audit
3117
- /cli/v10/cli-commands/npm-audit
3218
- /cli/v10/commands/audit
3319
- /cli/v10/npm-audit
34-
- /commands/audit
35-
- /commands/npm-audit
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-bugs.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-bugs.md
88
redirect_from:
9-
- /cli-commands/bugs
10-
- /cli-commands/npm-bugs
11-
- /cli-documentation/bugs
12-
- /cli-documentation/cli-commands/bugs
13-
- /cli-documentation/cli-commands/npm-bugs
14-
- /cli-documentation/commands/bugs
15-
- /cli-documentation/commands/npm-bugs
16-
- /cli-documentation/npm-bugs
179
- /cli-documentation/v10/bugs
1810
- /cli-documentation/v10/cli-commands/bugs
1911
- /cli-documentation/v10/cli-commands/npm-bugs
2012
- /cli-documentation/v10/commands/bugs
2113
- /cli-documentation/v10/commands/npm-bugs
2214
- /cli-documentation/v10/npm-bugs
23-
- /cli/bugs
24-
- /cli/cli-commands/bugs
25-
- /cli/cli-commands/npm-bugs
26-
- /cli/commands/bugs
27-
- /cli/commands/npm-bugs
28-
- /cli/npm-bugs
2915
- /cli/v10/bugs
3016
- /cli/v10/cli-commands/bugs
3117
- /cli/v10/cli-commands/npm-bugs
3218
- /cli/v10/commands/bugs
3319
- /cli/v10/npm-bugs
34-
- /commands/bugs
35-
- /commands/npm-bugs
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-cache.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-cache.md
88
redirect_from:
9-
- /cli-commands/cache
10-
- /cli-commands/npm-cache
11-
- /cli-documentation/cache
12-
- /cli-documentation/cli-commands/cache
13-
- /cli-documentation/cli-commands/npm-cache
14-
- /cli-documentation/commands/cache
15-
- /cli-documentation/commands/npm-cache
16-
- /cli-documentation/npm-cache
179
- /cli-documentation/v10/cache
1810
- /cli-documentation/v10/cli-commands/cache
1911
- /cli-documentation/v10/cli-commands/npm-cache
2012
- /cli-documentation/v10/commands/cache
2113
- /cli-documentation/v10/commands/npm-cache
2214
- /cli-documentation/v10/npm-cache
23-
- /cli/cache
24-
- /cli/cli-commands/cache
25-
- /cli/cli-commands/npm-cache
26-
- /cli/commands/cache
27-
- /cli/commands/npm-cache
28-
- /cli/npm-cache
2915
- /cli/v10/cache
3016
- /cli/v10/cli-commands/cache
3117
- /cli/v10/cli-commands/npm-cache
3218
- /cli/v10/commands/cache
3319
- /cli/v10/npm-cache
34-
- /commands/cache
35-
- /commands/npm-cache
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-ci.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-ci.md
88
redirect_from:
9-
- /cli-commands/ci
10-
- /cli-commands/npm-ci
11-
- /cli-documentation/ci
12-
- /cli-documentation/cli-commands/ci
13-
- /cli-documentation/cli-commands/npm-ci
14-
- /cli-documentation/commands/ci
15-
- /cli-documentation/commands/npm-ci
16-
- /cli-documentation/npm-ci
179
- /cli-documentation/v10/ci
1810
- /cli-documentation/v10/cli-commands/ci
1911
- /cli-documentation/v10/cli-commands/npm-ci
2012
- /cli-documentation/v10/commands/ci
2113
- /cli-documentation/v10/commands/npm-ci
2214
- /cli-documentation/v10/npm-ci
23-
- /cli/ci
24-
- /cli/cli-commands/ci
25-
- /cli/cli-commands/npm-ci
26-
- /cli/commands/ci
27-
- /cli/commands/npm-ci
28-
- /cli/npm-ci
2915
- /cli/v10/ci
3016
- /cli/v10/cli-commands/ci
3117
- /cli/v10/cli-commands/npm-ci
3218
- /cli/v10/commands/ci
3319
- /cli/v10/npm-ci
34-
- /commands/ci
35-
- /commands/npm-ci
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-completion.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-completion.md
88
redirect_from:
9-
- /cli-commands/completion
10-
- /cli-commands/npm-completion
11-
- /cli-documentation/cli-commands/completion
12-
- /cli-documentation/cli-commands/npm-completion
13-
- /cli-documentation/commands/completion
14-
- /cli-documentation/commands/npm-completion
15-
- /cli-documentation/completion
16-
- /cli-documentation/npm-completion
179
- /cli-documentation/v10/cli-commands/completion
1810
- /cli-documentation/v10/cli-commands/npm-completion
1911
- /cli-documentation/v10/commands/completion
2012
- /cli-documentation/v10/commands/npm-completion
2113
- /cli-documentation/v10/completion
2214
- /cli-documentation/v10/npm-completion
23-
- /cli/cli-commands/completion
24-
- /cli/cli-commands/npm-completion
25-
- /cli/commands/completion
26-
- /cli/commands/npm-completion
27-
- /cli/completion
28-
- /cli/npm-completion
2915
- /cli/v10/cli-commands/completion
3016
- /cli/v10/cli-commands/npm-completion
3117
- /cli/v10/commands/completion
3218
- /cli/v10/completion
3319
- /cli/v10/npm-completion
34-
- /commands/completion
35-
- /commands/npm-completion
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-config.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-config.md
88
redirect_from:
9-
- /cli-commands/config
10-
- /cli-commands/npm-config
11-
- /cli-documentation/cli-commands/config
12-
- /cli-documentation/cli-commands/npm-config
13-
- /cli-documentation/commands/config
14-
- /cli-documentation/commands/npm-config
15-
- /cli-documentation/config
16-
- /cli-documentation/npm-config
179
- /cli-documentation/v10/cli-commands/config
1810
- /cli-documentation/v10/cli-commands/npm-config
1911
- /cli-documentation/v10/commands/config
2012
- /cli-documentation/v10/commands/npm-config
2113
- /cli-documentation/v10/config
2214
- /cli-documentation/v10/npm-config
23-
- /cli/cli-commands/config
24-
- /cli/cli-commands/npm-config
25-
- /cli/commands/config
26-
- /cli/commands/npm-config
27-
- /cli/config
28-
- /cli/npm-config
2915
- /cli/v10/cli-commands/config
3016
- /cli/v10/cli-commands/npm-config
3117
- /cli/v10/commands/config
3218
- /cli/v10/config
3319
- /cli/v10/npm-config
34-
- /commands/config
35-
- /commands/npm-config
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-dedupe.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-dedupe.md
88
redirect_from:
9-
- /cli-commands/dedupe
10-
- /cli-commands/npm-dedupe
11-
- /cli-documentation/cli-commands/dedupe
12-
- /cli-documentation/cli-commands/npm-dedupe
13-
- /cli-documentation/commands/dedupe
14-
- /cli-documentation/commands/npm-dedupe
15-
- /cli-documentation/dedupe
16-
- /cli-documentation/npm-dedupe
179
- /cli-documentation/v10/cli-commands/dedupe
1810
- /cli-documentation/v10/cli-commands/npm-dedupe
1911
- /cli-documentation/v10/commands/dedupe
2012
- /cli-documentation/v10/commands/npm-dedupe
2113
- /cli-documentation/v10/dedupe
2214
- /cli-documentation/v10/npm-dedupe
23-
- /cli/cli-commands/dedupe
24-
- /cli/cli-commands/npm-dedupe
25-
- /cli/commands/dedupe
26-
- /cli/commands/npm-dedupe
27-
- /cli/dedupe
28-
- /cli/npm-dedupe
2915
- /cli/v10/cli-commands/dedupe
3016
- /cli/v10/cli-commands/npm-dedupe
3117
- /cli/v10/commands/dedupe
3218
- /cli/v10/dedupe
3319
- /cli/v10/npm-dedupe
34-
- /commands/dedupe
35-
- /commands/npm-dedupe
3620
---
3721

3822
### Synopsis

content/cli/v10/commands/npm-deprecate.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,17 @@ github_repo: npm/cli
66
github_branch: release/v10
77
github_path: docs/lib/content/commands/npm-deprecate.md
88
redirect_from:
9-
- /cli-commands/deprecate
10-
- /cli-commands/npm-deprecate
11-
- /cli-documentation/cli-commands/deprecate
12-
- /cli-documentation/cli-commands/npm-deprecate
13-
- /cli-documentation/commands/deprecate
14-
- /cli-documentation/commands/npm-deprecate
15-
- /cli-documentation/deprecate
16-
- /cli-documentation/npm-deprecate
179
- /cli-documentation/v10/cli-commands/deprecate
1810
- /cli-documentation/v10/cli-commands/npm-deprecate
1911
- /cli-documentation/v10/commands/deprecate
2012
- /cli-documentation/v10/commands/npm-deprecate
2113
- /cli-documentation/v10/deprecate
2214
- /cli-documentation/v10/npm-deprecate
23-
- /cli/cli-commands/deprecate
24-
- /cli/cli-commands/npm-deprecate
25-
- /cli/commands/deprecate
26-
- /cli/commands/npm-deprecate
27-
- /cli/deprecate
28-
- /cli/npm-deprecate
2915
- /cli/v10/cli-commands/deprecate
3016
- /cli/v10/cli-commands/npm-deprecate
3117
- /cli/v10/commands/deprecate
3218
- /cli/v10/deprecate
3319
- /cli/v10/npm-deprecate
34-
- /commands/deprecate
35-
- /commands/npm-deprecate
3620
---
3721

3822
### Synopsis

0 commit comments

Comments
 (0)