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.
- package/cli/templates/create/project/basic/boilerplate/env/.env +1 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/cli/templates/create/project/basic/boilerplate/src/suite/a-home/modules/home-user/src/dto/passport.ts +1 -1
- package/dist/lib/bean/cli.bin.build.js +5 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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']);
|