@cabloy/module-info 1.0.22 → 1.1.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/LICENSE.en-US +3 -0
- package/LICENSE.zh-CN +3 -0
- package/README.md +0 -0
- package/dist/index.js +5 -5
- package/dist/interface.d.ts +2 -1
- package/package.json +5 -5
package/LICENSE.en-US
ADDED
package/LICENSE.zh-CN
ADDED
package/README.md
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -33,8 +33,8 @@ function parseInfoFromPath(pathName) {
|
|
|
33
33
|
}
|
|
34
34
|
exports.parseInfoFromPath = parseInfoFromPath;
|
|
35
35
|
const PREFIX_A = '/api/';
|
|
36
|
-
const PREFIX_B = '
|
|
37
|
-
const PREFIX_C = './
|
|
36
|
+
const PREFIX_B = 'vona-module-';
|
|
37
|
+
const PREFIX_C = './vona-module-';
|
|
38
38
|
const PREFIX_D = './';
|
|
39
39
|
const PREFIX_E = '/';
|
|
40
40
|
// aa-hello aa/hello
|
|
@@ -70,7 +70,7 @@ function parseInfoPro(moduleName, projectMode, projectEntityType) {
|
|
|
70
70
|
const info = parseInfo(moduleName);
|
|
71
71
|
if (!info)
|
|
72
72
|
return info;
|
|
73
|
-
if (['zova'].includes(projectMode)) {
|
|
73
|
+
if (['zova', 'vona'].includes(projectMode)) {
|
|
74
74
|
info.fullName = `${projectMode}-${projectEntityType}-${info.relativeName}`;
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
@@ -80,9 +80,9 @@ function parseInfoPro(moduleName, projectMode, projectEntityType) {
|
|
|
80
80
|
}
|
|
81
81
|
exports.parseInfoPro = parseInfoPro;
|
|
82
82
|
// /api/aa/hello/home/index
|
|
83
|
-
//
|
|
83
|
+
// vona-module-aa-hello
|
|
84
84
|
// ./aa-hello/
|
|
85
|
-
// ./
|
|
85
|
+
// ./vona-module-aa-hello/
|
|
86
86
|
function parseName(moduleUrl) {
|
|
87
87
|
if (!moduleUrl)
|
|
88
88
|
return;
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TypeProjectMode = 'front' | 'api' | 'zova';
|
|
1
|
+
export type TypeProjectMode = 'front' | 'api' | 'zova' | 'vona';
|
|
2
2
|
export type TypeProjectEntityType = 'module' | 'suite';
|
|
3
3
|
export interface IModuleCapabilities {
|
|
4
4
|
monkey: boolean;
|
|
@@ -53,6 +53,7 @@ export interface IModulePackage {
|
|
|
53
53
|
zovaModule?: {
|
|
54
54
|
capabilities?: IModuleCapabilities;
|
|
55
55
|
dependencies?: Record<string, string>;
|
|
56
|
+
globalDependencies?: Record<string, string | boolean>;
|
|
56
57
|
bundle?: {
|
|
57
58
|
vendors?: Array<IBundleVendor>;
|
|
58
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabloy/module-info",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "cabloy module-info",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"dist/**/*.js",
|
|
22
22
|
"dist/**/*.d.ts"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"lint": "eslint ."
|
|
26
|
-
},
|
|
27
24
|
"keywords": [
|
|
28
25
|
"egg",
|
|
29
26
|
"egg-born",
|
|
@@ -33,5 +30,8 @@
|
|
|
33
30
|
"author": "zhennann",
|
|
34
31
|
"dependencies": {
|
|
35
32
|
"stack-utils": "^2.0.6"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lint": "eslint ."
|
|
36
36
|
}
|
|
37
|
-
}
|
|
37
|
+
}
|