@yizhuan-cli/cli 0.1.11-beta.0 → 0.1.11
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/README.md +2 -2
- package/package.json +1 -1
- package/resources/yizhuan-cli/manifest.json +3 -3
- package/src/doctor.js +2 -2
package/README.md
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
需要 Node.js 22 或更高版本。
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install -g @yizhuan-cli/cli@0.1.11
|
|
10
|
+
npm install -g @yizhuan-cli/cli@0.1.11
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
如果发布在私有 npm registry,请加上对应 registry:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install -g @yizhuan-cli/cli@0.1.11
|
|
16
|
+
npm install -g @yizhuan-cli/cli@0.1.11 --registry=https://your-private-registry.example
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## 配置
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "yizhuan-cli",
|
|
4
|
-
"version": "0.1.11
|
|
5
|
-
"compatibleCliVersion": "0.1.11
|
|
6
|
-
"source": "npm:@yizhuan-cli/cli@0.1.11
|
|
4
|
+
"version": "0.1.11",
|
|
5
|
+
"compatibleCliVersion": "0.1.11",
|
|
6
|
+
"source": "npm:@yizhuan-cli/cli@0.1.11",
|
|
7
7
|
"digestAlgorithm": "sha256",
|
|
8
8
|
"files": [
|
|
9
9
|
{
|
package/src/doctor.js
CHANGED
|
@@ -53,9 +53,9 @@ export function inspectLocalEnvironment(
|
|
|
53
53
|
? check('pass', 'node', `Node.js ${nodeVersion} 满足 >=${minimumNode}`)
|
|
54
54
|
: check('fail', 'node', `Node.js ${nodeVersion} 不满足 ${packageJson.engines?.node || '版本要求'}`, `安装 Node.js ${minimumNode || 22} 或更高版本。`))
|
|
55
55
|
|
|
56
|
-
checks.push(packageJson.version === '0.1.11
|
|
56
|
+
checks.push(packageJson.version === '0.1.11'
|
|
57
57
|
? check('pass', 'cli_version', `CLI ${packageJson.version}`)
|
|
58
|
-
: check('fail', 'cli_version', `CLI 版本为 ${packageJson.version},预期 0.1.11
|
|
58
|
+
: check('fail', 'cli_version', `CLI 版本为 ${packageJson.version},预期 0.1.11`, '安装 @yizhuan-cli/cli@0.1.11。'))
|
|
59
59
|
|
|
60
60
|
if (!exists(configPath)) {
|
|
61
61
|
checks.push(check('fail', 'config', `配置不存在:${configPath}`, '运行 yizhuan config init。'))
|