vona-cli-set-api 1.0.434 → 1.0.438

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.
@@ -34,7 +34,7 @@ LOGGER_ROTATE_MAXFILES = 7d
34
34
  # build
35
35
 
36
36
  BUILD_OUTDIR =
37
- BUILD_SOURCEMAP = false
37
+ BUILD_SOURCEMAP = true
38
38
  BUILD_MINIFY = true
39
39
  BUILD_LOG_CIRCULAR_DEPENDENCY = false
40
40
  BUILD_COPY_DIST =
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.245"
49
+ "vona": "^5.0.247"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@cabloy/lint": "^5.0.16",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-home-index",
3
3
  "type": "module",
4
- "version": "5.0.14",
4
+ "version": "5.0.15",
5
5
  "title": "home-index",
6
6
  "vonaModule": {
7
7
  "dependencies": {
@@ -1,4 +1,5 @@
1
1
  import type { TypeLocaleBase } from 'vona';
2
+ import { $makeLocaleMagic } from 'vona';
2
3
  import locale_en_us from '../config/locale/en-us.ts';
3
4
  import locale_zh_cn from '../config/locale/zh-cn.ts';
4
5
 
@@ -7,6 +8,6 @@ export const locales = {
7
8
  'zh-cn': locale_zh_cn,
8
9
  };
9
10
 
10
- export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `home-index::${K}` {
11
- return `home-index::${key}`;
11
+ export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K) {
12
+ return $makeLocaleMagic(`home-index::${key}`);
12
13
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-home-user",
3
3
  "type": "module",
4
- "version": "5.0.23",
4
+ "version": "5.0.24",
5
5
  "title": "home-user",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,
@@ -43,9 +43,9 @@ export type EntityRoleUserMeta=TypeEntityMeta<EntityRoleUser,EntityRoleUserTable
43
43
  export type EntityUserMeta=TypeEntityMeta<EntityUser,EntityUserTableName>;
44
44
  declare module 'vona-module-a-orm' {
45
45
  export interface ITableRecord {
46
- 'homeRole': never;
47
- 'homeRoleUser': never;
48
- 'homeUser': never;
46
+ 'homeRole': EntityRoleMeta;
47
+ 'homeRoleUser': EntityRoleUserMeta;
48
+ 'homeUser': EntityUserMeta;
49
49
  }
50
50
  }
51
51
  declare module 'vona-module-home-user' {
@@ -1,4 +1,5 @@
1
1
  import type { TypeLocaleBase } from 'vona';
2
+ import { $makeLocaleMagic } from 'vona';
2
3
  import locale_en_us from '../config/locale/en-us.ts';
3
4
  import locale_zh_cn from '../config/locale/zh-cn.ts';
4
5
 
@@ -7,6 +8,6 @@ export const locales = {
7
8
  'zh-cn': locale_zh_cn,
8
9
  };
9
10
 
10
- export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): `home-user::${K}` {
11
- return `home-user::${key}`;
11
+ export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K) {
12
+ return $makeLocaleMagic(`home-user::${key}`);
12
13
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-suite-a-home",
3
3
  "type": "module",
4
- "version": "5.0.27",
4
+ "version": "5.0.28",
5
5
  "title": "a-home",
6
6
  "description": "",
7
7
  "author": "zhennann",
package/dist/index.js CHANGED
@@ -2186,14 +2186,15 @@ async function generateLocale1(modulePath, moduleName) {
2186
2186
  }
2187
2187
  // combine
2188
2188
  const content = `import type { TypeLocaleBase } from 'vona';
2189
+ import { $makeLocaleMagic } from 'vona';
2189
2190
  ${contentImports.join('\n')}
2190
2191
 
2191
2192
  export const locales = {
2192
2193
  ${contentLocales.join('\n')}
2193
2194
  };
2194
2195
 
2195
- export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K): \`${moduleName}::\${K}\` {
2196
- return \`${moduleName}::\${key}\`;
2196
+ export function $locale<K extends keyof (typeof locales)[TypeLocaleBase]>(key: K) {
2197
+ return $makeLocaleMagic(\`${moduleName}::\${key}\`);
2197
2198
  }
2198
2199
  `;
2199
2200
  return content;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.434",
4
+ "version": "1.0.438",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -64,7 +64,7 @@
64
64
  "ts-node-maintained": "^10.9.6",
65
65
  "urllib": "^4.6.11",
66
66
  "uuid": "^11.1.0",
67
- "vona-core": "^5.0.108",
67
+ "vona-core": "^5.0.110",
68
68
  "why-is-node-running": "^3.2.2",
69
69
  "yargs-parser": "^22.0.0"
70
70
  },