@nocobase/cli 0.11.0-alpha.1 → 0.11.1-alpha.1
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 +3 -3
- package/src/commands/doc.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"serve": "^13.0.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@nocobase/devtools": "0.11.
|
|
24
|
+
"@nocobase/devtools": "0.11.1-alpha.1"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
28
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
29
29
|
"directory": "packages/core/cli"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9ed1dba520bc5f3a7cb1255ea8d92ccbefc11bc8"
|
|
32
32
|
}
|
package/src/commands/doc.js
CHANGED
|
@@ -51,7 +51,7 @@ module.exports = (cli) => {
|
|
|
51
51
|
if (command === 'serve') {
|
|
52
52
|
// 如果是多语言,则需要进入内部,如果不是多语言,则直接进入 docs/dist
|
|
53
53
|
let dir = resolve(cwd, 'docs/dist', process.env.DOC_LANG);
|
|
54
|
-
if (!existsSync(dir)) {
|
|
54
|
+
if (!fs.existsSync(dir)) {
|
|
55
55
|
dir = resolve(cwd, 'docs/dist');
|
|
56
56
|
}
|
|
57
57
|
run('serve', [dir]);
|