zova-module-a-bean 5.1.22 → 5.1.23

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 CHANGED
File without changes
@@ -44,12 +44,13 @@ export async function generateFileComponent(
44
44
  : '';
45
45
  // import
46
46
  const _contentImportTypeZova: string[] = [];
47
- if (hasModels)
47
+ if (hasModels) {
48
48
  _contentImportTypeZova.push(
49
49
  'DefineModelOptions',
50
50
  'TypePropUpdateFromModel',
51
51
  'TypePropValueFromModel',
52
52
  );
53
+ }
53
54
  if (hasProps) _contentImportTypeZova.push('TypeControllerInnerProps');
54
55
  if (_contentImportTypeZova.length > 0) {
55
56
  contentImports.push(`import type { ${_contentImportTypeZova.join(', ')} } from 'zova';`);
@@ -1,7 +1,7 @@
1
1
  export * from './aop.js';
2
2
  export * from './aopMethod.js';
3
3
  export * from './bean.js';
4
+ export * from './component.js';
4
5
  export * from './onion.js';
5
6
  export * from './service.js';
6
- export * from './component.js';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -14,8 +14,9 @@ export async function generateFileComponent(options, globFile, controllerInfo) {
14
14
  : '';
15
15
  // import
16
16
  const _contentImportTypeZova = [];
17
- if (hasModels)
17
+ if (hasModels) {
18
18
  _contentImportTypeZova.push('DefineModelOptions', 'TypePropUpdateFromModel', 'TypePropValueFromModel');
19
+ }
19
20
  if (hasProps)
20
21
  _contentImportTypeZova.push('TypeControllerInnerProps');
21
22
  if (_contentImportTypeZova.length > 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-bean",
3
- "version": "5.1.22",
4
- "gitHead": "6f675a8cc46d596142c591c28a40cc4d82fcc6cc",
3
+ "version": "5.1.23",
4
+ "gitHead": "09d901d17140a80ee0764211b441cda72fd94663",
5
5
  "description": "",
6
6
  "keywords": [
7
7
  "Zova Module"
@@ -24,6 +24,13 @@
24
24
  },
25
25
  "./*": "./*"
26
26
  },
27
+ "scripts": {
28
+ "clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
29
+ "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json",
30
+ "prepublishOnly": "npm run tsc:publish",
31
+ "prepack": "clean-package",
32
+ "postpack": "clean-package restore && npm run clean"
33
+ },
27
34
  "dependencies": {
28
35
  "globby": "^14.1.0"
29
36
  },
@@ -87,9 +94,5 @@
87
94
  }
88
95
  },
89
96
  "dependencies": {}
90
- },
91
- "scripts": {
92
- "clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
93
- "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json"
94
97
  }
95
- }
98
+ }
@@ -1,6 +1,6 @@
1
1
  export * from './aop.js';
2
2
  export * from './aopMethod.js';
3
3
  export * from './bean.js';
4
+ export * from './component.js';
4
5
  export * from './onion.js';
5
6
  export * from './service.js';
6
- export * from './component.js';