@sanity/cli 3.60.0 → 3.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sanity/cli",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.61.0",
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
5
5
|
"keywords": [
|
6
6
|
"sanity",
|
@@ -58,9 +58,9 @@
|
|
58
58
|
"dependencies": {
|
59
59
|
"@babel/traverse": "^7.23.5",
|
60
60
|
"@sanity/client": "^6.22.1",
|
61
|
-
"@sanity/codegen": "3.
|
61
|
+
"@sanity/codegen": "3.61.0",
|
62
62
|
"@sanity/telemetry": "^0.7.7",
|
63
|
-
"@sanity/util": "3.
|
63
|
+
"@sanity/util": "3.61.0",
|
64
64
|
"chalk": "^4.1.2",
|
65
65
|
"debug": "^4.3.4",
|
66
66
|
"decompress": "^4.2.0",
|
@@ -76,13 +76,13 @@
|
|
76
76
|
},
|
77
77
|
"devDependencies": {
|
78
78
|
"@jest/globals": "^29.7.0",
|
79
|
-
"@repo/package.config": "3.
|
80
|
-
"@repo/test-config": "3.
|
79
|
+
"@repo/package.config": "3.61.0",
|
80
|
+
"@repo/test-config": "3.61.0",
|
81
81
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
82
82
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
83
83
|
"@sanity/eslint-config-studio": "^4.0.0",
|
84
84
|
"@sanity/generate-help-url": "^3.0.0",
|
85
|
-
"@sanity/types": "3.
|
85
|
+
"@sanity/types": "3.61.0",
|
86
86
|
"@types/babel__traverse": "^7.20.5",
|
87
87
|
"@types/configstore": "^5.0.1",
|
88
88
|
"@types/cpx": "^1.5.2",
|
@@ -135,5 +135,5 @@
|
|
135
135
|
"engines": {
|
136
136
|
"node": ">=18"
|
137
137
|
},
|
138
|
-
"gitHead": "
|
138
|
+
"gitHead": "3e10823081dbdcbea5a9acb27bc2369c38b34953"
|
139
139
|
}
|
package/src/commands/index.ts
CHANGED
@@ -5,6 +5,7 @@ import docsCommand from './docs/docsCommand'
|
|
5
5
|
import helpCommand from './help/helpCommand'
|
6
6
|
import initCommand from './init/initCommand'
|
7
7
|
import installCommand from './install/installCommand'
|
8
|
+
import learnCommand from './learn/learnCommand'
|
8
9
|
import loginCommand from './login/loginCommand'
|
9
10
|
import logoutCommand from './logout/logoutCommand'
|
10
11
|
import manageCommand from './manage/manageCommand'
|
@@ -31,6 +32,7 @@ export const baseCommands: (CliCommandDefinition | CliCommandGroupDefinition)[]
|
|
31
32
|
debugCommand,
|
32
33
|
helpCommand,
|
33
34
|
projectsGroup,
|
35
|
+
learnCommand,
|
34
36
|
listProjectsCommand,
|
35
37
|
codemodCommand,
|
36
38
|
telemetryGroup,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import open from 'open'
|
2
|
+
|
3
|
+
import {type CliCommandDefinition} from '../../types'
|
4
|
+
|
5
|
+
const learnCommand: CliCommandDefinition = {
|
6
|
+
name: 'learn',
|
7
|
+
helpText: '',
|
8
|
+
signature: 'learn',
|
9
|
+
description: 'Opens Sanity Learn in your web browser',
|
10
|
+
async action(args, context) {
|
11
|
+
const {output} = context
|
12
|
+
const {print} = output
|
13
|
+
const url = 'https://www.sanity.io/learn'
|
14
|
+
|
15
|
+
print(`Opening ${url}`)
|
16
|
+
await open(url)
|
17
|
+
},
|
18
|
+
}
|
19
|
+
|
20
|
+
export default learnCommand
|