@nocobase/cli 0.14.0-alpha.5 → 0.14.0-alpha.7

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/util.js +1 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli",
3
- "version": "0.14.0-alpha.5",
3
+ "version": "0.14.0-alpha.7",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./src/index.js",
@@ -8,7 +8,7 @@
8
8
  "nocobase": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/app": "0.14.0-alpha.5",
11
+ "@nocobase/app": "0.14.0-alpha.7",
12
12
  "@types/fs-extra": "^11.0.1",
13
13
  "@umijs/utils": "3.5.20",
14
14
  "chalk": "^4.1.1",
@@ -23,12 +23,12 @@
23
23
  "tsx": "^3.12.7"
24
24
  },
25
25
  "devDependencies": {
26
- "@nocobase/devtools": "0.14.0-alpha.5"
26
+ "@nocobase/devtools": "0.14.0-alpha.7"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
30
30
  "url": "git+https://github.com/nocobase/nocobase.git",
31
31
  "directory": "packages/core/cli"
32
32
  },
33
- "gitHead": "8e0ee4a1e5b682161e5dc9d27a309b68c5f1aa8b"
33
+ "gitHead": "9876bef649cf0a79594c42edb70c6bf4022a85eb"
34
34
  }
package/src/util.js CHANGED
@@ -190,13 +190,8 @@ exports.genTsConfigPaths = function genTsConfigPaths() {
190
190
  const packageJsonName = require(packageFile).name;
191
191
  const packageDir = dirname(packageFile);
192
192
  const relativePath = packageDir.slice(cwdLength + 1).replace(/\\/, '/');
193
- const hasClient = fg.sync(['client', 'client.ts', 'client.tsx', 'client.js', 'client.jsx'], {
194
- cwd: join(packageDir, 'src'),
195
- }).length;
196
- if (hasClient) {
197
- paths[`${packageJsonName}/client`] = [`${relativePath}/src/client`];
198
- }
199
193
  paths[packageJsonName] = [`${relativePath}/src`];
194
+ paths[`${packageJsonName}/client`] = [`${relativePath}/src/client`];
200
195
  });
201
196
 
202
197
  const tsConfigJsonPath = join(cwd, './tsconfig.paths.json');