@nocobase/cli 0.14.0-alpha.6 → 0.14.0-alpha.8
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 +4 -4
- 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.
|
|
3
|
+
"version": "0.14.0-alpha.8",
|
|
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.
|
|
11
|
+
"@nocobase/app": "0.14.0-alpha.8",
|
|
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.
|
|
26
|
+
"@nocobase/devtools": "0.14.0-alpha.8"
|
|
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": "
|
|
33
|
+
"gitHead": "59c82fef6e34707802b5841f5ec4d9b3b6b68abb"
|
|
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');
|