@nocobase/cli 0.11.0-alpha.1 → 0.11.1-alpha.2

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": "@nocobase/cli",
3
- "version": "0.11.0-alpha.1",
3
+ "version": "0.11.1-alpha.2",
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.0-alpha.1"
24
+ "@nocobase/devtools": "0.11.1-alpha.2"
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": "7581b6d3a3a54f09f06a9effb7e3e65328281b2b"
31
+ "gitHead": "8482aa720ea1c3abbbb9fe1208e73778bd63f1cf"
32
32
  }
@@ -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]);