vona-cli-set-api 1.0.179 → 1.0.182

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,6 +34,7 @@ BUILD_INLINEDYNAMICIMPORTS = true
34
34
  BUILD_LOG_CIRCULAR_DEPENDENCY = false
35
35
  BUILD_COPY_DIST =
36
36
  BUILD_COPY_RELEASE =
37
+ BUILD_DIALECT_DRIVERS = pg,mysql2
37
38
 
38
39
  # test
39
40
 
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "vona": "^5.0.106"
48
+ "vona": "^5.0.108"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@cabloy/lint": "^5.0.16",
@@ -1,5 +1,5 @@
1
- import type { DtoAuth } from 'vona-module-a-auth';
2
1
  import type { IDecoratorDtoOptions } from 'vona-module-a-web';
2
+ import { DtoAuth } from 'vona-module-a-auth';
3
3
  import { Api, v } from 'vona-module-a-openapi';
4
4
  import { Dto } from 'vona-module-a-web';
5
5
  import { EntityRole } from 'vona-module-home-user';
@@ -20,6 +20,7 @@ const babel = babelImport;
20
20
  const terser = terserImport;
21
21
  const alias = aliasImport;
22
22
  const replace = replaceImport;
23
+ const __dialectDriversAll = ['pg', 'mysql2', 'better-sqlite3', 'mysql', 'oracledb', 'pg-native', 'pg-query-stream', 'sqlite3', 'tedious', 'cloudflare:sockets'];
23
24
  export class CliBinBuild extends BeanCliBase {
24
25
  async execute() {
25
26
  const { argv } = this.context;
@@ -85,7 +86,10 @@ export class CliBinBuild extends BeanCliBase {
85
86
  }
86
87
  async _rollup(projectPath, env, outDir) {
87
88
  const aliasEntries = [];
88
- for (const name of ['better-sqlite3', 'mysql', 'oracledb', 'pg-native', 'pg-query-stream', 'sqlite3', 'tedious', 'cloudflare:sockets']) {
89
+ const dialectDrivers = (process.env.BUILD_DIALECT_DRIVERS || '').split(',');
90
+ for (const name of __dialectDriversAll) {
91
+ if (dialectDrivers.includes(name))
92
+ continue;
89
93
  aliasEntries.push({ find: name, replacement: 'vona-shared' });
90
94
  }
91
95
  const replaceValues = generateConfigDefine(env, ['NODE_ENV', 'META_MODE', 'META_FLAVOR']);
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.179",
4
+ "version": "1.0.182",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"